Click or drag to resize

GeometrySegmentIntersectsTriangle Method

Tests if the segment (from, to) intersects the triangle a, b, 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 SegmentIntersectsTriangle(
	Vector3 from,
	Vector3 to,
	Vector3 a,
	Vector3 b,
	Vector3 c
)

Parameters

from
Type: GodotVector3

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

to
Type: GodotVector3

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

a
Type: GodotVector3

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

b
Type: GodotVector3

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

c
Type: GodotVector3

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

Return Value

Type: Object

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

See Also