[][src]Struct nphysics3d::object::RigidBody

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

A rigid body.

Methods

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

Retrieves a reference to the user-defined user-data attached to this object.

Retrieves a mutable reference to the user-defined user-data attached to this object.

Sets the user-defined data attached to this object.

Replace by None the user-defined data attached to this object and returns the old value.

Mark some translational degrees of freedom as kinematic.

Mark some rotational degrees of freedom as kinematic.

Flags indicating which translational degrees of freedoms are kinematic.

Flags indicating which rotational degrees of freedoms are kinematic.

Disable all rotations of this rigid body.

This is the same as setting all the rotations of this rigid body as kinematic and setting its angular velocity to zero. The rotations will still be controllable at the velocity level by the user afterwards.

Enable all rotations for this rigid body.

This is the same as setting all the rotations of this rigid body as non-kinematic.

Disable all translations of this rigid body.

This is the same as setting all the translations of this rigid body as kinematic and setting its linear velocity to zero. The translations will still be controllable at the velocity level by the user afterwards.

Enable all translations for this rigid body.

This is the same as setting all the translations of this rigid body as non-kinematic.

The handle of this rigid body.

The part-handle of this rigid body.

The part id is set to 0 though any value is acceptable.

Mutable information regarding activation and deactivation (sleeping) of this rigid body.

Set the center of mass of this rigid body, expressed in its local space.

Set the local inertia of this rigid body, expressed in its local space.

Set the mass of this rigid body.

Set the angular inertia of this rigid body, expressed in its local space.

Sets the position of this rigid body.

Set the velocity of this rigid body.

Set the linear velocity of this rigid body.

Set the angular velocity of this rigid body.

The augmented mass (inluding gyroscropic terms) in world-space of this rigid body.

The inverse augmented mass (inluding gyroscropic terms) in world-space of this rigid body.

The position of this rigid body.

The velocity of this rigid body.

Trait Implementations

impl<N: Real> Body<N> for RigidBody<N>
[src]

Returns true if this body is the ground.

Update whether this body needs to be waken up after a user-interaction.

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

The velocity of the specified body part, taking this body status into account. Read more

Check if this body is active.

Whether or not the status of this body is dynamic.

Whether or not the status of this body is kinematic.

Whether or not the status of this body is static.

Force the activation of this body.

impl<N: Real> BodyPart<N> for RigidBody<N>
[src]

impl<N: Debug + Real> Debug for RigidBody<N>
[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self