Struct ncollide3d::pipeline::broad_phase::DBVTBroadPhase [−][src]
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.
Implementations
impl<N, BV, T> DBVTBroadPhase<N, BV, T> where
N: RealField,
BV: 'static + BoundingVolume<N> + Clone,
[src]
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]
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 update(&mut self, handler: &mut dyn BroadPhaseInterferenceHandler<T>)
[src]
fn proxy(&self, handle: BroadPhaseProxyHandle) -> Option<(&BV, &T)>
[src]
Retrieves the bounding volume and data associated to the given proxy.
fn create_proxy(&mut self, bv: BV, data: T) -> BroadPhaseProxyHandle
[src]
fn remove(
&mut self,
handles: &[BroadPhaseProxyHandle],
handler: &mut dyn FnMut(&T, &T)
)
[src]
&mut self,
handles: &[BroadPhaseProxyHandle],
handler: &mut dyn FnMut(&T, &T)
)
fn deferred_set_bounding_volume(
&mut self,
handle: BroadPhaseProxyHandle,
bounding_volume: BV
)
[src]
&mut self,
handle: BroadPhaseProxyHandle,
bounding_volume: BV
)
fn deferred_recompute_all_proximities_with(
&mut self,
handle: BroadPhaseProxyHandle
)
[src]
&mut self,
handle: BroadPhaseProxyHandle
)
fn deferred_recompute_all_proximities(&mut self)
[src]
fn interferences_with_bounding_volume<'a>(
&'a self,
bv: &BV,
out: &mut Vec<&'a T>
)
[src]
&'a self,
bv: &BV,
out: &mut Vec<&'a T>
)
fn interferences_with_ray<'a>(
&'a self,
ray: &Ray<N>,
max_toi: N,
out: &mut Vec<&'a T>
)
[src]
&'a self,
ray: &Ray<N>,
max_toi: N,
out: &mut Vec<&'a T>
)
fn interferences_with_point<'a>(
&'a self,
point: &Point<N>,
out: &mut Vec<&'a T>
)
[src]
&'a self,
point: &Point<N>,
out: &mut Vec<&'a T>
)
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]
&'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>)>
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,
T: RefUnwindSafe,
BV: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, BV, T> Send for DBVTBroadPhase<N, BV, T> where
BV: Send,
T: Send,
BV: Send,
T: Send,
impl<N, BV, T> Sync for DBVTBroadPhase<N, BV, T> where
BV: Sync,
T: Sync,
BV: Sync,
T: Sync,
impl<N, BV, T> Unpin for DBVTBroadPhase<N, BV, T> where
BV: Unpin,
N: Unpin,
T: Unpin,
BV: Unpin,
N: Unpin,
T: Unpin,
impl<N, BV, T> UnwindSafe for DBVTBroadPhase<N, BV, T> where
BV: UnwindSafe,
N: UnwindSafe,
T: UnwindSafe,
BV: UnwindSafe,
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]