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
//! 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>>;