mirror of
https://github.com/bevyengine/bevy
synced 2024-12-20 01:53:12 +00:00
6a3b059db9
# Objective #10946 added bounding volume types and an `IntersectsVolume` trait, but didn't actually implement intersections between bounding volumes. This PR implements AABB-AABB, circle-circle / sphere-sphere, and AABB-circle / AABB-sphere intersections. ## Solution Implement `IntersectsVolume` for bounding volume pairs. I also added `closest_point` methods to return the closest point on the surface / inside of bounding volumes. This is used for AABB-circle / AABB-sphere intersections. --------- Co-authored-by: IQuick 143 <IQuick143cz@gmail.com> |
||
---|---|---|
.. | ||
bounding | ||
primitives | ||
rects | ||
affine3.rs | ||
aspect_ratio.rs | ||
cubic_splines.rs | ||
lib.rs | ||
ray.rs |