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
//! Dynamics-specific algebraic entities: velocity, forces, and inertias.

pub use self::velocity2::Velocity2;
pub use self::velocity3::Velocity3;

pub use self::force2::Force2;
pub use self::force3::Force3;

pub use self::inertia2::Inertia2;
pub use self::inertia3::Inertia3;

/// The type of force to be applied with the `.apply_force` methods of a Body.
///
/// See the [user guide](https://www.nphysics.org/rigid_body_simulations_with_contacts/#one-time-force-application-and-impulses)
/// for details.
#[derive(Clone, Copy, Debug)]
pub enum ForceType {
    /// A regular force.
    Force,
    /// An impulsive force (delta-time is ignored).
    Impulse,
    /// A direct acceleration change (mass is ignored).
    AccelerationChange,
    /// A direct velocity change (mass and delta time are ignored).
    VelocityChange,
}

mod velocity2;
mod velocity3;

mod force2;
mod force3;

mod inertia2;
mod inertia3;