Click or drag to resize

GeometrySegmentIntersectsCylinder Method

Checks if the segment (from, to) intersects the cylinder with height height that is centered at the origin and has radius radius. If no, returns an empty Vector3. If an intersection takes place, the returned array contains the point of intersection and the cylinder's normal at the point of intersection.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Vector3[] SegmentIntersectsCylinder(
	Vector3 from,
	Vector3 to,
	float height,
	float radius
)

Parameters

from
Type: GodotVector3

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

to
Type: GodotVector3

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

height
Type: SystemSingle

[Missing <param name="height"/> documentation for "M:Godot.Geometry.SegmentIntersectsCylinder(Godot.Vector3,Godot.Vector3,System.Single,System.Single)"]

radius
Type: SystemSingle

[Missing <param name="radius"/> documentation for "M:Godot.Geometry.SegmentIntersectsCylinder(Godot.Vector3,Godot.Vector3,System.Single,System.Single)"]

Return Value

Type: Vector3

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

See Also