Click or drag to resize
CameraEntityRayFrom2dPoint Method
Return a ray starting from the camera and pointing directly at a 2d position translated to 3d space. This is a helper function that help to get ray collision based on camera and position on screen.

Namespace:  GeonBit.Core.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Ray RayFrom2dPoint(
	Vector2 point
)

Parameters

point
Type: Vector2
Point to send ray to.

Return Value

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