[][src]Struct ncollide3d::pipeline::broad_phase::DBVTBroadPhase

pub struct DBVTBroadPhase<N: RealField, 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: RealField,
    BV: 'static + BoundingVolume<N> + Clone
[src]

pub fn new(margin: N) -> DBVTBroadPhase<N, BV, T>[src]

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

pub fn num_interferences(&self) -> usize[src]

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: RealField,
    BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
    T: Any + Send + Sync + Clone
[src]

fn proxy(&self, handle: BroadPhaseProxyHandle) -> Option<(&BV, &T)>[src]

Retrieves the bounding volume and data associated to the given proxy.

fn first_interference_with_ray<'a, 'b>(
    &'a self,
    ray: &'b Ray<N>,
    max_toi: N,
    cost_fn: &'a dyn Fn(T, &'b Ray<N>, N) -> Option<(T, RayIntersection<N>)>
) -> Option<(T, RayIntersection<N>)>
[src]

Returns the first object that interferes with a ray.

Auto Trait Implementations

impl<N, BV, T> RefUnwindSafe for DBVTBroadPhase<N, BV, T> where
    BV: RefUnwindSafe,
    N: RefUnwindSafe + Scalar,
    T: RefUnwindSafe

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

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

impl<N, BV, T> Unpin for DBVTBroadPhase<N, BV, T> where
    BV: Unpin,
    N: Scalar + Unpin,
    T: Unpin

impl<N, BV, T> UnwindSafe for DBVTBroadPhase<N, BV, T> where
    BV: UnwindSafe,
    N: Scalar + UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,