Ejemplo n.º 1
0
        public void SetFromWorldDirection(Vector3 worldDirection)
        {
            Vector2 coords = SphereUtility.DirectionToSphericalCoordinate(worldDirection);

            horizontalRotation = coords.x;
            verticalRotation   = coords.y;
        }
Ejemplo n.º 2
0
 public Vector3 GetWorldDirection()
 {
     return(SphereUtility.SphericalCoordinateToDirection(new Vector2(horizontalRotation, verticalRotation)));
 }