rotate method

void rotate(
  1. Vector3 axis,
  2. double angle
)

Implementation

void rotate(Vector3 axis, double angle) {
  rot = Quaternion.axisAngle(axis, angle)..asRotationMatrix().multiplied(rot.asRotationMatrix())..normalized();

  forceUpdate = true;
}