getWorldQuaternion method

Quaternion getWorldQuaternion(
  1. Quaternion target
)
inherited

target — the result will be copied into this Quaternion.

Returns a quaternion representing the rotation of the object in world space.

Implementation

Quaternion getWorldQuaternion(Quaternion target) {
  updateWorldMatrix(true, false);
  matrixWorld.decompose(_position, target, _scale);
  return target;
}