Click or drag to resize

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

Parameters

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

Return Value

Type: Vertices
See Also