eulerAngles property
Vector3
get
eulerAngles
Determines the receiver's euler angles. The order of components in this vector matches the axes of rotation:
- Pitch (the x component) is the rotation about the node's x-axis (in radians)
- Yaw (the y component) is the rotation about the node's y-axis (in radians)
- Roll (the z component) is the rotation about the node's z-axis (in radians)
Implementation
Vector3 get eulerAngles => transform.matrixEulerAngles;
set
eulerAngles
(Vector3 value)
Implementation
set eulerAngles(Vector3 value) {
final old = Matrix4.fromFloat64List(transform.storage);
final newT = old.clone();
newT.matrixEulerAngles = value;
transform = newT;
}