Click or drag to resize

ProjectionUtilsCameraToPlaneProjection Method

Projects a screen point to a plane from a camera's point of view.

Namespace:  TouchScript.Utils.Geom
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3 CameraToPlaneProjection(
	Vector2 position,
	Camera camera,
	Plane projectionPlane
)

Parameters

position
Type: Vector2
Screen point.
camera
Type: Camera
The camera.
projectionPlane
Type: Plane
Projection plane.

Return Value

Type: Vector3
Projected point on the plane in World coordinates.
See Also