rotateOnWorldAxis method

Object3D rotateOnWorldAxis(
  1. Vector3 axis,
  2. double angle
)
inherited

axis -- A normalized vector in world space.

angle -- The angle in radians.

Rotate an object along an axis in world space. The axis is assumed to be normalized. Method Assumes no rotated parent.

Implementation

Object3D rotateOnWorldAxis(Vector3 axis, double angle) {
  // rotate object on axis in world space
  // axis is assumed to be normalized
  // method assumes no rotated parent
  _q1.setFromAxisAngle(axis, angle);
  quaternion.multiply(_q1);
  return this;
}