Click or drag to resize

CameraProjectRayOrigin Method

Returns a 3D position in worldspace, that is the result of projecting a point on the Viewport rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 ProjectRayOrigin(
	Vector2 screenPoint
)

Parameters

screenPoint
Type: GodotVector2

[Missing <param name="screenPoint"/> documentation for "M:Godot.Camera.ProjectRayOrigin(Godot.Vector2)"]

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.Camera.ProjectRayOrigin(Godot.Vector2)"]

See Also