Struct nphysics3d::object::ColliderData[][src]

pub struct ColliderData<N: RealField + Copy, Handle: BodyHandle> { /* fields omitted */ }
Expand description

Data stored in each collider.

This is needed by nphysics.

Implementations

Initializes data for a collider.

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.

The collision margin surrounding this collider.

Handle to the body this collider is attached to.

The anchor attaching this collider with a body part or deformable body.

The density of this collider.

The position of this collider geometry wrt. the body it is attached to.

Handle to the body part containing the given subshape of this collider’s shape.

The material of this collider.

A mutable reference to this collider’s material.

If the material is shared, then an internal clone is performed before returning the mutable reference (this effectively calls the Arc::make_mut method to get a copy-on-write behavior).

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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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.