Expand description
Shape overlap queries and independent swept character movement.
Characters slide against static boxes one axis at a time. Sweeps prevent
tunneling along each axis, but this is not a full continuous collision solver.
Initial overlaps are depenetrated in a bounded pass before movement.
For body pairs, layers and triggers, see crate::physics.
Re-exports§
pub use crate::physics::Penetration2D;pub use crate::physics::Penetration3D;
Structs§
- Aabb2
- Axis-aligned 2D box, also used for UI rectangles.
- Aabb3
- Axis-aligned 3D box.
- Body2D
- Simple swept 2D character body. Positive Y is down.
- Body3D
- Corresponding 3D character body. Positive Y is up.
- Circle
- World-space circle for standalone overlap queries.
- Sphere
- World-space sphere for standalone overlap queries.