worldMatrix property
Matrix4
get
worldMatrix
World transform matrix (accumulated from root).
Implementation
Matrix4 get worldMatrix {
if (_worldDirty || _worldMatrix == null) {
if (_parent != null) {
_worldMatrix = _parent!.worldMatrix * localMatrix;
} else {
_worldMatrix = localMatrix.clone();
}
_worldDirty = false;
}
return _worldMatrix!;
}