Click or drag to resize

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

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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static Vertices CreateCapsule(
	float height,
	float topRadius,
	int topEdges,
	float bottomRadius,
	int bottomEdges
)

Parameters

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

Return Value

Vertices
See Also