Struct cala::RigidBody

source ·
pub struct RigidBody { /* private fields */ }
Expand description

The structure that represents physical objects in the gameworld.

Implementations

Create a new RigidBody.

This method specifically applies the force of gravity to a given RigidBody

Apply a force vector to this RigidBody.

Add a spin to this RigidBody.

Stop forces on this RigidBody.

Stop spins on this RigidBody.

Move RigidBody based on applied forces for a set period of time.

Returns a transformation Matrix for visualization.

Trait Implementations

Get the BBox for this collider.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.