Struct ncollide2d::broad_phase::DBVTBroadPhase[][src]

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

Broad phase based on a Dynamic Bounding Volume Tree.

It uses two separate trees: one for static objects and which is never updated, and one for moving objects.

Methods

impl<N, BV, T> DBVTBroadPhase<N, BV, T> where
    N: Real,
    BV: 'static + BoundingVolume<N> + Clone
[src]

Creates a new broad phase based on a Dynamic Bounding Volume Tree.

Number of interferences detected by this broad phase.

Trait Implementations

impl<N, BV, T> BroadPhase<N, BV, T> for DBVTBroadPhase<N, BV, T> where
    N: Real,
    BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
    T: Any + Send + Sync
[src]

Updates the object additions, removals, and interferences detection.

Tells the broad phase to add a bounding-volume at the next update.

Tells the broad phase to remove the given set of handles.

Sets the next bounding volume to be used during the update of this broad phase.

Forces the broad-phase to recompute and re-report all the proximities with the given object.

Forces the broad-phase to recompute and re-report all the proximities.

Collects every object which might intersect a given bounding volume.

Collects every object which might intersect a given ray.

Collects every object which might contain a given point.

Auto Trait Implementations

impl<N, BV, T> Send for DBVTBroadPhase<N, BV, T> where
    BV: Send,
    T: Send

impl<N, BV, T> Sync for DBVTBroadPhase<N, BV, T> where
    BV: Sync,
    T: Sync