rhusics-core 0.7.0

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

pub use collide3d::*;

use cgmath::{Matrix3, Vector3};

use physics::{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>>;