Enum nphysics3d::object::BodyMut[][src]

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

A mutable body contained by the physics world.

Variants

A rigid body.

A multibody.

The ground.

Methods

impl<'a, N: Real> BodyMut<'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.

Applies a displacement to all the degrees of freedom of this body.

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

The handle of this body.

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

The status of this body.

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

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

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

Check if this body is active.

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

Whether or not the status of this body is kinematic.

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

Whether or not the status of this body is static.

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

The number of degrees of freedom of this body.

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

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

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

The generalized velocities of this body.

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

The companion ID of this body.

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

Set the companion ID of this body (may be reinitialized by nphysics).

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

The mutable generalized velocities of this body.

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

Integrate the position of this body.

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

Force the activation of this body.

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

Force the activation of this body with the given level of energy.

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

Put this body to sleep.

Auto Trait Implementations

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

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