[][src]Struct ncollide3d::world::CollisionWorld

pub struct CollisionWorld<N: Real, T> { /* fields omitted */ }

A world that handles collision objects.

Methods

impl<N: Real, T> CollisionWorld<N, T>
[src]

Creates a new collision world.

Adds a collision object to the world.

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.

Removed the specified set of collision objects from the world.

Panics of any handle is invalid, or if the list contains duplicates.

Sets the position the collision object attached to the specified object.

Apply the given deformations 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 collision objects 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.

Important traits for CollisionObjects<'a, N, T>

Iterates through all collision objects.

Returns a reference to the collision object identified by its handle.

Returns a mutable reference to the collision object identified by its handle.

Sets the collision groups of the given collision object.

Important traits for InterferencesWithRay<'a, 'b, N, T>

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

Important traits for InterferencesWithPoint<'a, 'b, N, T>

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

Important traits for InterferencesWithAABB<'a, 'b, N, T>

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

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 collision objects.

Refer to the official user guide for details.

The potential contact pair between the two specified collision objects.

Refer to the official user guide for details.

The potential proximity pair between the two specified collision objects.

Refer to the official user guide for details.

All the interaction pairs involving the specified collision object.

Refer to the official user guide for details.

All the proximity pairs involving the specified collision object.

Refer to the official user guide for details.

All the contact pairs involving the specified collision object.

Refer to the official user guide for details.

All the collision object handles of collision objects interacting with the specified collision object.

Refer to the official user guide for details.

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

Refer to the official user guide for details.

All the collision object handles of collision objects in potential proximity of with the specified collision object.

Refer to the official user guide for details.

The contact events pool.

The proximity events pool.

Auto Trait Implementations

impl<N, T> Send for CollisionWorld<N, T> where
    N: Scalar,
    T: Send

impl<N, T> Sync for CollisionWorld<N, T> where
    N: Scalar,
    T: Sync

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<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Downcast for T where
    T: Any

impl<T> Same for T

Should always be Self