AabbCast2d
AabbCast2d
- ray : bevy_math::bounding::raycast2d::RayCast2d
- aabb : bevy_math::bounding::bounded2d::Aabb2d
Description
An intersection test that casts an [
Aabb2d
] along a ray.
Functions
Function | Summary |
---|---|
aabb_collision_at(_self, aabb) | Get the distance at which the [`Aabb2d`]s collide, if at all. |
clone(_self) | No Documentation 🚧 |
from_ray(aabb, ray, max) | Construct an [`AabbCast2d`] from an [`Aabb2d`], [`Ray2d`], and max distance. |
new(aabb, origin, direction, max) | Construct an [`AabbCast2d`] from an [`Aabb2d`], origin, [`Dir2`], and max distance. |