Struct nphysics3d::world::GeometricalWorld[][src]

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

The world managing all geometric queries.

This is a wrapper over the CollisionWorld structure from ncollide to simplify its use with the [object::Collider] structure.

Implementations

Creates a geometrical world from the provided broad-phase and narrow-phase structures.

Creates a new collision world.

Maintain the internal structures of the geometrical world by handling body removals and colliders insersion and removals.

Synchronize all colliders with their body parent and the underlying collision world.

Returns the set of colliders attached to the specified body.

Returns None if the body has no collider attached to it, of if the body does not exist.

Empty the contact and proximity event pools.

Executes the broad phase of the collision detection pipeline.

Executes the narrow phase of the collision detection pipeline.

The broad-phase used by this geometrical world.

Computes the interferences between every rigid bodies on this world and a ray.

Computes the interferences between every rigid bodies of a given broad phase, and a point.

Computes the interferences between every rigid bodies of a given broad phase, and a aabb.

The contact events pool.

The proximity events pool.

All the potential interactions pairs.

Refer to the official user guide for details.

All the potential contact pairs.

Refer to the official user guide for details.

All the potential proximity pairs.

Refer to the official user guide for details.

The potential interaction pair between the two specified colliders.

Refer to the official user guide for details.

The potential contact pair between the two specified colliders.

Refer to the official user guide for details.

The potential proximity pair between the two specified colliders.

Refer to the official user guide for details.

All the interaction pairs involving the specified collider.

Refer to the official user guide for details.

All the contact pairs involving the specified collider.

Refer to the official user guide for details.

All the proximity pairs involving the specified collider.

Refer to the official user guide for details.

All the collider handles of colliders interacting with the specified collider.

Refer to the official user guide for details.

All the collider handles of colliders in potential contact with the specified collision object.

Refer to the official user guide for details.

All the collider handles of colliders in potential proximity of with the specified collider.

Refer to the official user guide for details.

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.