getDirection method

Vector3 getDirection(
  1. Vector3 result
)

Computes the current direction (forward) vector of this game entity and stores the result in the given vector.

Implementation

Vector3 getDirection(Vector3 result ) {
	return result.copy( forward ).applyRotation( rotation ).normalize();
}