Chunks
Moddable voxel sandbox for room-scale VR.
|
Describes an axis aligned bounding box being projected along a line in a specific direction. More...
Public Member Functions | |
SweptAABB (Vector origin, Vector size, Vector direction) | |
Constructs a new SweptAABB with the given box center position, size, and direction of travel. More... | |
Vector | GetPoint (float delta) |
Gets the new center of the bounding box after travelling delta units in the direction of the sweep. More... | |
void | GetBroadPhaseBounds (float dist, out Vector min, out Vector max) |
Gets an axis aligned bounding box containing all positions the swept AABB will visit when moved dist units in the sweep direction. More... | |
void | GetBounds (float dist, out Vector min, out Vector max) |
Gets the minimum and maximum bounds of the swept AABB after moving dist units in the sweep direction. More... | |
Public Attributes | |
readonly Vector | Origin |
Starting center of the bounding box. More... | |
readonly Vector | Size |
Width, height and depth of the bounding box. More... | |
readonly Vector | Direction |
Direction the bounding box is swept. More... | |
Describes an axis aligned bounding box being projected along a line in a specific direction.
Constructs a new SweptAABB with the given box center position, size, and direction of travel.
origin | Starting center of the bounding box |
size | Width, height and depth of the bounding box |
direction | Direction the bounding box is swept |
Gets the minimum and maximum bounds of the swept AABB after moving dist units in the sweep direction.
dist | Distance of travel |
min | Outputted destination bounds minimum |
max | Outputted destination bounds maximum |
Gets an axis aligned bounding box containing all positions the swept AABB will visit when moved dist units in the sweep direction.
dist | Distance of travel |
min | Outputted broad phase bounds minimum |
max | Outputted broad phase bounds maximum |
Vector Chunks.Geometry.SweptAABB.GetPoint | ( | float | delta | ) |
Gets the new center of the bounding box after travelling delta units in the direction of the sweep.
delta | Distance of the point along the sweep |
readonly Vector Chunks.Geometry.SweptAABB.Direction |
Direction the bounding box is swept.
readonly Vector Chunks.Geometry.SweptAABB.Origin |
Starting center of the bounding box.
readonly Vector Chunks.Geometry.SweptAABB.Size |
Width, height and depth of the bounding box.