transformAsMatrix4 method
Matrix4
transformAsMatrix4()
Returns the scene's root transform as a Matrix4, or the identity
matrix when the scene has no transform set.
Implementation
Matrix4 transformAsMatrix4() {
return transform?.toMatrix4() ?? Matrix4.identity();
}