GetCameraToViewportRay() private méthode

private GetCameraToViewportRay ( float screenX, float screenY ) : Ray
screenX float
screenY float
Résultat Axiom.Math.Ray
Exemple #1
0
		/// <summary>
		/// Converts a 2D screen coordinate (in pixels) to a 3D ray into the scene.
		/// </summary>
		/// <param name="cam"></param>
		/// <param name="pt"></param>
		/// <returns></returns>
		public static Ray ScreenToScene( Camera cam, Vector2 pt )
		{
			return cam.GetCameraToViewportRay( pt.x, pt.y );
		}