eulerAngles property

Vector3 eulerAngles

Determines the receiver's euler angles. The order of components in this vector matches the axes of rotation:

  1. Pitch (the x component) is the rotation about the node's x-axis (in radians)
  2. Yaw (the y component) is the rotation about the node's y-axis (in radians)
  3. Roll (the z component) is the rotation about the node's z-axis (in radians)

Implementation

Vector3 get eulerAngles => transform.matrixEulerAngles;
void eulerAngles=(Vector3 value)

Implementation

set eulerAngles(Vector3 value) {
  final old = Matrix4.fromFloat64List(transform.storage);
  final newT = old.clone();
  newT.matrixEulerAngles = value;
  transform = newT;
}