translateOnAxis method

Object3D translateOnAxis(
  1. dynamic axis,
  2. num distance
)
inherited

Implementation

Object3D translateOnAxis(axis, num distance) {
  // translate object by distance along axis in object space
  // axis is assumed to be normalized

  _v1.copy(axis).applyQuaternion(quaternion);

  position.add(_v1.multiplyScalar(distance));

  return this;
}