Enum nphysics3d::object::BodyPart[][src]

pub enum BodyPart<'a, N: Real> {
    RigidBody(&'a RigidBody<N>),
    MultibodyLink(MultibodyLinkRef<'a, N>),
    Ground(&'a Ground<N>),
}

A mutable body part contained by the physics world.

Variants

A rigid body.

A link of a multibody.

The ground.

Methods

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

Returns true if this body is the ground.

The handle of this body.

The number of degrees of freedom of the body containing this body part.

The companion ID of the parent of this body part.

Check if this body part is active.

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

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

The generalized velocities of the body containing this body part.

The center of mass of this body part.

The position of this body part wrt. the ground.

The velocity of this body part.

The world-space inertia of this body part.

The local-space inertia of this body part.

The velocity of this body part, taking it status into account.

This always return zero if the body part is static.

Convert a force applied to the center of mass of this body part into generalized force.

Convert generalized forces applied to this body part into generalized accelerations.

Convert a force applied to this body part's center of mass into generalized accelerations.

Auto Trait Implementations

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

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