rotateOnWorldAxis method

Object3D rotateOnWorldAxis(
  1. dynamic axis,
  2. num angle
)

Implementation

Object3D rotateOnWorldAxis(axis, num angle) {
  // rotate object on axis in world space
  // axis is assumed to be normalized
  // method assumes no rotated parent

  _q1.setFromAxisAngle(axis, angle);

  quaternion.premultiply(_q1);

  return this;
}