Enum nphysics3d::object::Body[][src]

pub enum Body<'a, N: Real> {
    RigidBody(&'a RigidBody<N>),
    Multibody(&'a Multibody<N>),
    Ground(&'a Ground<N>),
}

A body contained by the physics world.

Variants

A rigid body.

A multibody.

The ground.

Methods

impl<'a, N: Real> Body<'a, N>
[src]

Checks if this body identifies the ground.

The number of degrees of freedom (DOF) of this body, taking its status into account.

In particular, this returns 0 for any body with a status different than BodyStatus::Dynamic.

impl<'a, N: Real> Body<'a, N>
[src]

The handle of this body.

impl<'a, N: Real> Body<'a, N>
[src]

The status of this body.

impl<'a, N: Real> Body<'a, N>
[src]

Informations regarding activation and deactivation (sleeping) of this body.

impl<'a, N: Real> Body<'a, N>
[src]

Check if this body is active.

impl<'a, N: Real> Body<'a, N>
[src]

Whether or not the status of this body is dynamic.

impl<'a, N: Real> Body<'a, N>
[src]

Whether or not the status of this body is kinematic.

impl<'a, N: Real> Body<'a, N>
[src]

Whether or not the status of this body is static.

impl<'a, N: Real> Body<'a, N>
[src]

The number of degrees of freedom of this body.

impl<'a, N: Real> Body<'a, N>
[src]

The generalized accelerations at each degree of freedom of this body.

impl<'a, N: Real> Body<'a, N>
[src]

The generalized velocities of this body.

impl<'a, N: Real> Body<'a, N>
[src]

The companion ID of this body.

Auto Trait Implementations

impl<'a, N> Send for Body<'a, N> where
    N: Scalar

impl<'a, N> Sync for Body<'a, N> where
    N: Scalar