getWorldQuaternion method
Quaternion
getWorldQuaternion(
- 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;
}