Table of Contents

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

start Vector3

The centre of the first hemisphere, relative to the body origin.

end Vector3

The centre of the second hemisphere, relative to the body origin.

radius float

The radius. Must be positive.

Exceptions

ArgumentOutOfRangeException

radius is not positive.