Click or drag to resize

GeometryBuildCylinderPlanes Method

Returns an array of Planes closely bounding a faceted cylinder centered at the origin with radius radius and height height. The parameter sides defines how many planes will be generated for the round part of the cylinder. The parameter axis describes the axis along which the cylinder 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 BuildCylinderPlanes(
	float radius,
	float height,
	int sides,
	Vector3Axis axis = Vector3Axis.Z
)

Parameters

radius
Type: SystemSingle

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

height
Type: SystemSingle

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

sides
Type: SystemInt32

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

axis (Optional)
Type: GodotVector3Axis

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

Return Value

Type: Array

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

See Also