getWorldScale method

Vector3 getWorldScale(
  1. Vector3 target
)
inherited

target — the result will be copied into this Vector3.

Returns a vector of the scaling factors applied to the object for each axis in world space.

Implementation

Vector3 getWorldScale(Vector3 target) {
  updateWorldMatrix(true, false);
  matrixWorld.decompose(_position, _quaternion, target);
  return target;
}