Click or drag to resize
CameraGetRay Method (Vector2)
Get the 3d ray that starts from camera position and directed at a given 2d position.

Namespace:  GeonBit.ECS.Components.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Ray GetRay(
	Vector2 position
)

Parameters

position
Type: Vector2
Position to get ray to.

Return Value

Type: Ray
Ray from camera to given position.
See Also