Expand description
§Rhusics physics library
A physics library.
Uses cgmath
for all computation.
Features:
- Two different broad phase collision detection implementations:
- Brute force
- Sweep and Prune
- Narrow phase collision detection using GJK, and optionally EPA for full contact information
- Functions for collision detection working on user supplied transform, and
CollisionShape
components. Can optionally use broad and/or narrow phase detection. Library supplies a transform implementationBodyPose
for convenience. - Uses single precision as default, can be changed to double precision with the
double
feature. - Has support for doing spatial sort/collision detection using the collision-rs DBVT.
- Support for doing broad phase using the collision-rs DBVT.
- Has support for all primitives in collision-rs
Modules§
- collide2d
- Type wrappers and convenience functions for 2D collision detection
- collide3d
- Type wrappers and convenience functions for 3D collision detection
- physics2d
- 2D physics ECS
- physics3d
- 3D physics ECS
Structs§
- Basic
Collision System - Collision detection system for use with
specs
. - Contact
Resolution System - Do single contact, forward resolution.
- Current
Frame Update System - Current frame update system.
- Delta
Time - Time step resource
- Next
Frame Setup System - Setup the next frames positions and velocities.
- Physical
Entity Parts - SystemData for easier creation of physical entities.
- Spatial
Collision System - Collision detection system for use with
specs
. - Spatial
Sorting System - Spatial sorting system for use with
specs
.
Enums§
- Physical
Entity Creation Error - Error returned when physical entity setup fails
Traits§
- With
Physics - Adds physical entity builder functions to
EntityBuilder
Functions§
- setup_
dispatch - Create systems and add to a
Dispatcher
graph.