rotation property
Quaternion
get
rotation
This node's rotation relative to its parent.
Same copy rules as position. Setting leaves the position and scale alone, and records the decomposition, so all three read back what was set.
Implementation
Quaternion get rotation {
assert(_debugCheckTransformHandouts());
final value = _decomposedLocalTransform().rotation.clone();
assert(_debugRecordHandout('rotation', value, value.clone()));
return value;
}
set
rotation
(Quaternion value)
Implementation
set rotation(Quaternion value) {
assert(_debugForgetHandout('rotation'));
final trs = _decomposedLocalTransform();
trs.rotation.setFrom(value);
setLocalTransformTrs(trs);
}