localTransform property

Matrix4 get localTransform

The transform of this node relative to its parent: position, rotation, and scale.

Prefer position, rotation, and scale for the common case, or assign a whole matrix. Both mark this node and its descendants' cached world transforms stale, and this node and its ancestors' cached bounds stale.

The getter returns the live matrix, so editing it in place does NOT mark anything stale and the node silently will not move (debug builds throw on the next read). To edit in place, use mutateLocalTransform, which dirties for you, or assign a fresh matrix (node.localTransform = node.localTransform.clone()..translateByVector3(...)).

Implementation

Matrix4 get localTransform => _localTransform;
set localTransform (Matrix4 value)

Implementation

set localTransform(Matrix4 value) {
  _localTransform = value;
  _localTransformTrs = null;
  markTransformDirty();
}