Struct rhusics_core::Mass[][src]

pub struct Mass<S, I> { /* fields omitted */ }

Mass

Mass properties for a body. Inertia is the moment of inertia in the base pose. For retrieving the inertia tensor for the body in its current orientation, see world_inertia and world_inverse_inertia.

Type parameters:

  • I: Inertia type, usually Scalar or Matrix3, see Inertia for more information.

Methods

impl<S, I> Mass<S, I> where
    S: BaseFloat,
    I: Inertia
[src]

Create new mass object

Create new infinite mass object

Create new mass object with given inertia

Compute mass from the given volume shape and material

Get mass

Get inverse mass

Get inertia in local space

Get inertia tensor in world space

Parameters:

  • orientation: The current orientation of the body

Get inverse inertia in local space

Get inverse inertia tensor in world space

Parameters:

  • orientation: The current orientation of the body

Trait Implementations

impl<S: Debug, I: Debug> Debug for Mass<S, I>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S, I> Send for Mass<S, I> where
    I: Send,
    S: Send

impl<S, I> Sync for Mass<S, I> where
    I: Sync,
    S: Sync