[−][src]Trait ncollide2d::broad_phase::BroadPhase
Trait all broad phase must implement.
Required methods
fn create_proxy(&mut self, bv: BV, data: T) -> ProxyHandle
Tells the broad phase to add a bounding-volume at the next update.
fn remove(
&mut self,
handles: &[ProxyHandle],
removal_handler: &mut dyn FnMut(&T, &T)
)
&mut self,
handles: &[ProxyHandle],
removal_handler: &mut dyn FnMut(&T, &T)
)
Tells the broad phase to remove the given set of handles.
fn deferred_set_bounding_volume(&mut self, handle: ProxyHandle, bv: BV)
Sets the next bounding volume to be used during the update of this broad phase.
fn deferred_recompute_all_proximities_with(&mut self, handle: ProxyHandle)
Forces the broad-phase to recompute and re-report all the proximities with the given object.
fn deferred_recompute_all_proximities(&mut self)
Forces the broad-phase to recompute and re-report all the proximities.
fn update(&mut self, handler: &mut dyn BroadPhaseInterferenceHandler<T>)
Updates the object additions, removals, and interferences detection.
fn interferences_with_bounding_volume<'a>(
&'a self,
bv: &BV,
out: &mut Vec<&'a T>
)
&'a self,
bv: &BV,
out: &mut Vec<&'a T>
)
Collects every object which might intersect a given bounding volume.
fn interferences_with_ray<'a>(&'a self, ray: &Ray<N>, out: &mut Vec<&'a T>)
Collects every object which might intersect a given ray.
fn interferences_with_point<'a>(
&'a self,
point: &Point<N>,
out: &mut Vec<&'a T>
)
&'a self,
point: &Point<N>,
out: &mut Vec<&'a T>
)
Collects every object which might contain a given point.
Implementors
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]
N: Real,
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync,
fn update(&mut self, handler: &mut dyn BroadPhaseInterferenceHandler<T>)
[src]
fn create_proxy(&mut self, bv: BV, data: T) -> ProxyHandle
[src]
fn remove(&mut self, handles: &[ProxyHandle], handler: &mut dyn FnMut(&T, &T))
[src]
fn deferred_set_bounding_volume(
&mut self,
handle: ProxyHandle,
bounding_volume: BV
)
[src]
&mut self,
handle: ProxyHandle,
bounding_volume: BV
)
fn deferred_recompute_all_proximities_with(&mut self, handle: ProxyHandle)
[src]
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>, out: &mut Vec<&'a T>)
[src]
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>
)