RayCast2d
RayCast2d
- ray : bevy_math::ray::Ray2d
- max : f32
- direction_recip : glam::Vec2
Description
A raycast intersection test for 2D bounding volumes
Functions
Function | Summary |
---|---|
aabb_intersection_at(_self, aabb) | Get the distance of an intersection with an [`Aabb2d`], if any. |
circle_intersection_at(_self, circle) | Get the distance of an intersection with a [`BoundingCircle`], if any. |
clone(_self) | No Documentation 🚧 |
direction_recip(_self) | Get the cached multiplicative inverse of the direction of the ray. |
from_ray(ray, max) | Construct a [`RayCast2d`] from a [`Ray2d`] and max distance. |
new(origin, direction, max) | Construct a [`RayCast2d`] from an origin, [`Dir2`], and max distance. |