Crate valence_spatial

Source
Expand description

§valence_spatial

An implementation of a bounding volume hierarchy (BVH) for fast spatial queries.

Modules§

bvh

Structs§

RaycastHit
Represents an intersection between a ray and an entity’s axis-aligned bounding box (hitbox).
WithAabb

Traits§

Bounded3D
SpatialIndex

Functions§

ray_box_intersect
Calculates the intersection between an axis-aligned bounding box and a ray defined by its origin ro and direction rd.