Click or drag to resize

GeometryBuildCapsulePlanes Method

Returns an array of Planes closely bounding a faceted capsule centered at the origin with radius radius and height height. The parameter sides defines how many planes will be generated for the side part of the capsule, whereas lats gives the number of latitudinal steps at the bottom and top of the capsule. The parameter axis describes the axis along which the capsule is oriented (0 for X, 1 for Y, 2 for Z).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Array BuildCapsulePlanes(
	float radius,
	float height,
	int sides,
	int lats,
	Vector3Axis axis = Vector3Axis.Z
)

Parameters

radius
Type: SystemSingle

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

height
Type: SystemSingle

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

sides
Type: SystemInt32

[Missing <param name="sides"/> documentation for "M:Godot.Geometry.BuildCapsulePlanes(System.Single,System.Single,System.Int32,System.Int32,Godot.Vector3.Axis)"]

lats
Type: SystemInt32

[Missing <param name="lats"/> documentation for "M:Godot.Geometry.BuildCapsulePlanes(System.Single,System.Single,System.Int32,System.Int32,Godot.Vector3.Axis)"]

axis (Optional)
Type: GodotVector3Axis

[Missing <param name="axis"/> documentation for "M:Godot.Geometry.BuildCapsulePlanes(System.Single,System.Single,System.Int32,System.Int32,Godot.Vector3.Axis)"]

Return Value

Type: Array

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

See Also