Struct nphysics3d::object::BodySet[][src]

pub struct BodySet<N: Real> { /* fields omitted */ }

A set containing all the bodies added to the world.

Methods

impl<N: Real> BodySet<N>
[src]

Create a new empty set of bodies.

The number of bodies in this set.

Check if the two given handles identify the same body.

In particular, returns true if both handles indentify multibody links belonging to the same multibody.

Update the kinematics of all the bodies.

Clear the dynamics of all the bodies.

Update the dynamics of all the bodies.

Add a rigid body to the set and return its handle.

Add a multibody link to the set and return its handle.

Remove a body from this set.

If body identify a mutibody link, the whole multibody is removed.

Remove some multibody links.

If a multibody link which has descendent is removed, its immediat descendent in the kinematic tree becomes the root of a new multibody and its joint is replaced by a free joint attached to the ground.

Checks that the given handle identifies a valid body part.

Returns true if body.is_ground() too.

Reference to the body identified by body.

Panics if the body part is not found.

Mutable reference to the body identified by body.

Panics if the body part is not found.

Reference to the body part identified by body.

Panics if the body part is not found.

Mutable reference to the body part identified by body.

Panics if the body part is not found.

Reference to the multibody containing the multibody link identified by body.

Returns None if it is not found or does not identify a multibody link.

Mutable reference to the multibody containing the multibody link identified by body.

Returns None if it is not found or does not identify a multibody link.

Reference to the multibody link identified by body.

Returns None if it is not found or does not identify a multibody link.

Mutable reference to the multibody link identified by body.

Returns None if it is not found or does not identify a multibody link.

Reference to the rigid body identified by body.

Returns None if it is not found or does not identify a rigid body.

Mutable reference to the rigid body identified by body.

Returns None if it is not found or does not identify a rigid body.

Important traits for Map<I, F>

Iterator yielding all the rigid bodies on this set.

Important traits for Map<I, F>

Mutable iterator yielding all the rigid bodies on this set.

Important traits for Map<I, F>

Iterator yielding all the multibodies on this set.

Important traits for Map<I, F>

Mutable iterator yielding all the multibodies on this set.

Mutable iterator yielding all the bodies on this set.

Auto Trait Implementations

impl<N> Send for BodySet<N> where
    N: Scalar

impl<N> Sync for BodySet<N> where
    N: Scalar