rhusics 0.2.0

Physics library for use with `specs`
Documentation
//! 3D structures for physics

pub use collide::prelude3d::*;
pub use physics::{resolve_contact, Inertia, Material, RigidBody, Volume};

use cgmath::{Matrix3, Vector3};

use super::{ForceAccumulator, Mass, Velocity};

/// 3D velocity
///
/// ### Type parameters:
///
/// - `S`: Scalar type (f32 or f64)
pub type Velocity3<S> = Velocity<Vector3<S>, Vector3<S>>;

/// 3D mass
///
/// ### Type parameters:
///
/// - `S`: Scalar type (f32 or f64)
pub type Mass3<S> = Mass<S, Matrix3<S>>;

/// 3D force accumulator
///
/// ### Type parameters:
///
/// - `S`: Scalar type (f32 or f64)
pub type ForceAccumulator3<S> = ForceAccumulator<Vector3<S>, Vector3<S>>;