Struct rhusics::physics::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]

[src]

Create new mass object

[src]

Create new infinite mass object

[src]

Create new mass object with given inertia

[src]

Compute mass from the given volume shape and material

[src]

Get mass

[src]

Get inverse mass

[src]

Get inertia in local space

[src]

Get inertia tensor in world space

Parameters:

  • orientation: The current orientation of the body

[src]

Get inverse inertia in local space

[src]

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]

[src]

Formats the value using the given formatter.