1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # Rhusics physics library
//!
//! A physics library.
//! Uses [`cgmath`](https://github.com/brendanzab/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`](collide/struct.CollisionShape.html) components.
//!    Can optionally use broad and/or narrow phase detection.
//!    Library supplies a transform implementation [`BodyPose`](struct.BodyPose.html) 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
//!

#![deny(missing_docs, trivial_casts, unsafe_code, unstable_features, unused_import_braces,
        unused_qualifications)]

extern crate cgmath;
extern crate collision;
extern crate rhusics_core as core;
extern crate shrev;
extern crate specs;

#[cfg(feature = "eders")]
#[macro_use]
extern crate serde;

pub use collide::{BasicCollisionSystem, SpatialCollisionSystem, SpatialSortingSystem};
pub use physics::{ContactResolutionSystem, CurrentFrameUpdateSystem, DeltaTime,
                  NextFrameSetupSystem, WithLazyRigidBody, WithRigidBody};
pub use resources::WithRhusics;

pub mod collide2d;
pub mod collide3d;
pub mod physics2d;
pub mod physics3d;

mod collide;
mod physics;
mod resources;