Table of Contents

Method Upright

Namespace
Box3D
Assembly
Box3D.NET.dll

Upright(float, float)

Creates a capsule standing along the y axis, centred on the body origin.

public static Capsule Upright(float height, float radius)

Parameters

height float

The total height, including both hemispherical caps.

radius float

The radius. Must be positive and less than half the height.

Returns

Capsule

The capsule.

Exceptions

ArgumentOutOfRangeException

radius is not positive, or the height leaves no room for the caps.