Physics library for use in Specs, using cgmath and collision-rs.
Example
extern crate cgmath;
extern crate rhusics;
extern crate specs;
use ;
use ;
use ;
Features:
- Has support for all primitives in collision-rs
- Has support for the following broad phase algorithms in collision-rs:
- Brute force
- Sweep and Prune
- Narrow phase collision detection using GJK, and optionally EPA for full contact information
specs::System
for collision detection working on user supplied transform, and shape components. Can optionally use broad and/or narrow phase detection. Library supplies a transform implementation for convenience.specs::System
for spatial sorting on user supplied transform, and shape components.- 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.
TODO:
- Continuous collision detection, using GJK
- Impulse solver