Click or drag to resize

PolygonToolsCreateCapsule(Single, 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 endRadius,
	int edges
)

Parameters

height  Single
Height (inner height + 2 * radius) of the capsule.
endRadius  Single
Radius of the capsule ends.
edges  Int32
The number of edges of the capsule ends. The more edges, the more it resembles an capsule

Return Value

Vertices
See Also