Constructor Box
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Box(Vector3, Vector3)
Initializes a new instance of the Box3D.Box struct.
public Box(Vector3 halfExtents, Vector3 center = default)Parameters
halfExtentsVector3-
The half-widths along each axis. Every component must be positive.
centerVector3-
The centre, relative to the body origin.
Exceptions
- ArgumentOutOfRangeException
-
A component of
halfExtentsis not positive.