Constructor Capsule
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Capsule(Vector3, Vector3, float)
Initializes a new instance of the Box3D.Capsule struct.
public Capsule(Vector3 start, Vector3 end, float radius)Parameters
startVector3-
The centre of the first hemisphere, relative to the body origin.
endVector3-
The centre of the second hemisphere, relative to the body origin.
radiusfloat-
The radius. Must be positive.
Exceptions
- ArgumentOutOfRangeException
-
radiusis not positive.