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
heightfloat-
The total height, including both hemispherical caps.
radiusfloat-
The radius. Must be positive and less than half the height.
Returns
- Capsule
-
The capsule.
Exceptions
- ArgumentOutOfRangeException
-
radiusis not positive, or the height leaves no room for the caps.