Click or drag to resize

PolygonToolsCreateCapsule Method (Single, Single, Int32, Single, Int32)

Creates an capsule with the specified height, radius and number of edges. A capsule has the same form as a pill capsule.

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Vertices CreateCapsule(
	float height,
	float topRadius,
	int topEdges,
	float bottomRadius,
	int bottomEdges
)

Parameters

height
Type: SystemSingle
Height (inner height + radii) of the capsule.
topRadius
Type: SystemSingle
Radius of the top.
topEdges
Type: SystemInt32
The number of edges of the top. The more edges, the more it resembles an capsule
bottomRadius
Type: SystemSingle
Radius of bottom.
bottomEdges
Type: SystemInt32
The number of edges of the bottom. The more edges, the more it resembles an capsule

Return Value

Type: Vertices
See Also