#[repr(transparent)]
pub struct RigidBodyMap<L, D>where
    L: ArticulationLink,
    D: RigidDynamic,
{ /* private fields */ }
Expand description

A wrapper for RigidBody, parametrized by the ArticulationLink and RigidDynamic that may be it’s most derived type. Use cast_map or as_* to cast to it’s most derived type if specialized functionality is needed.

Implementations

Cast to the most-derived type as determined by get_type, which returns the ActorType. Because this does not use get_concrete_type, this method does not have the safety concerns of the other cast_maps, and a try_cast_map method is unneded.

Tries to cast to RigidDynamic.

Tries to cast to ArticulationLink.

Trait Implementations

Returns a raw const pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Returns a raw mut pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more

Auto Trait Implementations

Blanket Implementations

Get the concrete type of the actor
Get the world bounds of this actor
Set a flag on this actor
Set the flags to the provided value
Get all actor flags
Set the dominance group
Read the dominance group
Set the owner client of this actor
Read the owner client of this actor
Enable visualization of this actor
set gravity state
Gets the TypeId of self. Read more
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
Returns an enumerated value identifying the type. This may return ConcreteType::Undefined in surprising situations, notably this does not seem to work with get_active_actors. Use get_type for actors if possible. Read more
Set or unset the specified flag on this object.
Set the BaseFlags of this object. Note that replaces all flags currently on the object. Use set_base_flag to set individual flags. Read more
Read the BaseFlags of this object
Returns true if this object can be released, i.e., it is not subordinate.
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.