Click or drag to resize

GeometryRayIntersectsTriangle Method

Tests if the 3D ray starting at from with the direction of dir intersects the triangle specified by a, b and c. If yes, returns the point of intersection as Vector3. If no intersection takes place, an empty Variant is returned.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Object RayIntersectsTriangle(
	Vector3 from,
	Vector3 dir,
	Vector3 a,
	Vector3 b,
	Vector3 c
)

Parameters

from
Type: GodotVector3

[Missing <param name="from"/> documentation for "M:Godot.Geometry.RayIntersectsTriangle(Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3)"]

dir
Type: GodotVector3

[Missing <param name="dir"/> documentation for "M:Godot.Geometry.RayIntersectsTriangle(Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3)"]

a
Type: GodotVector3

[Missing <param name="a"/> documentation for "M:Godot.Geometry.RayIntersectsTriangle(Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3)"]

b
Type: GodotVector3

[Missing <param name="b"/> documentation for "M:Godot.Geometry.RayIntersectsTriangle(Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3)"]

c
Type: GodotVector3

[Missing <param name="c"/> documentation for "M:Godot.Geometry.RayIntersectsTriangle(Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3)"]

Return Value

Type: Object

[Missing <returns> documentation for "M:Godot.Geometry.RayIntersectsTriangle(Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3,Godot.Vector3)"]

See Also