[][src]Struct nphysics3d::world::ColliderWorld

pub struct ColliderWorld<N: Real> { /* fields omitted */ }

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.

Methods

impl<N: Real> ColliderWorld<N>
[src]

Creates a new collision world.

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

The material given to colliders without user-defined materials.

The underlying collision world from the ncollide crate.

Unwraps the underlying collision world from the ncollide crate.

Updates the collision world.

This executes the whole collision detection pipeline:

  1. Clears the event pools.
  2. Executes the broad phase first.
  3. Executes the narrow phase.

Empty the contact and proximity event pools.

Iterator through all the colliders with the given name.

Iterator through all the colliders attached to the body with the given handle.

Returns an empty iterator if the body does not exists.

Iterator through all the colliders attached to the body part with the given handle.

Returns an empty iterator if the body part does not exists. Does not return deformable colliders.

Sets the position the collider attached to the specified object.

Adds a filter that tells if a potential collision pair should be ignored or not.

The proximity filter returns false for a given pair of colliders if they should be ignored by the narrow phase. Keep in mind that modifying the proximity filter will have a non-trivial overhead during the next update as it will force re-detection of all collision pairs.

Removes the pair filter named name.

Executes the broad phase of the collision detection pipeline.

Executes the narrow phase of the collision detection pipeline.

Iterates through all colliders.

Returns a reference to the collider identified by its handle.

Returns a mutable reference to the collider identified by its handle.

Sets the collision groups of the given collider.

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

impl<N> Send for ColliderWorld<N> where
    N: Scalar

impl<N> Sync for ColliderWorld<N> where
    N: Scalar

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self