Click or drag to resize

GeometrySegmentIntersectsConvex Method

Given a convex hull defined though the Planes in the array planes, tests if the segment (from, to) intersects with that hull. If an intersection is found, returns a Vector3 containing the point the intersection and the hull's normal. If no intersecion is found, an the returned array is empty.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Vector3[] SegmentIntersectsConvex(
	Vector3 from,
	Vector3 to,
	Array planes
)

Parameters

from
Type: GodotVector3

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

to
Type: GodotVector3

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

planes
Type: Godot.CollectionsArray

[Missing <param name="planes"/> documentation for "M:Godot.Geometry.SegmentIntersectsConvex(Godot.Vector3,Godot.Vector3,Godot.Collections.Array)"]

Return Value

Type: Vector3

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

See Also