getWorldDirection method

Vector3 getWorldDirection(
  1. Vector3 target
)
inherited

target — the result will be copied into this Vector3.

Returns a vector representing the direction of object's positive z-axis in world space.

Implementation

Vector3 getWorldDirection(Vector3 target) {
  updateWorldMatrix(true, false);
  final e = matrixWorld.storage;
  target.setValues(e[8], e[9], e[10]);
  target.normalize();
  return target;
}