nphysics2d/algebra/
mod.rs

1//! Dynamics-specific algebraic entities: velocity, forces, and inertias.
2
3pub use self::velocity2::Velocity2;
4pub use self::velocity3::Velocity3;
5
6pub use self::force2::Force2;
7pub use self::force3::Force3;
8
9pub use self::inertia2::Inertia2;
10pub use self::inertia3::Inertia3;
11
12/// The type of force to be applied with the `.apply_force` methods of a Body.
13///
14/// See the [user guide](https://www.nphysics.org/rigid_body_simulations_with_contacts/#one-time-force-application-and-impulses)
15/// for details.
16#[derive(Clone, Copy, Debug)]
17pub enum ForceType {
18    /// A regular force.
19    Force,
20    /// An impulsive force (delta-time is ignored).
21    Impulse,
22    /// A direct acceleration change (mass is ignored).
23    AccelerationChange,
24    /// A direct velocity change (mass and delta time are ignored).
25    VelocityChange,
26}
27
28mod velocity2;
29mod velocity3;
30
31mod force2;
32mod force3;
33
34mod inertia2;
35mod inertia3;