addRotation method

void addRotation({
  1. double x = 0,
  2. double y = 0,
  3. double z = 0,
})

Adds relative rotation in degrees to current rotation.

Implementation

void addRotation({double x = 0, double y = 0, double z = 0}) {
  setRotation(
    x: rotationX + x,
    y: rotationY + y,
    z: rotationZ + z,
  );
}