[−][src]Struct ncollide3d::pipeline::broad_phase::DBVTBroadPhase
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]
N: RealField,
BV: 'static + BoundingVolume<N> + Clone,
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]
N: RealField,
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync + Clone,
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 + Scalar,
T: RefUnwindSafe,
BV: RefUnwindSafe,
N: RefUnwindSafe + Scalar,
T: RefUnwindSafe,
impl<N, BV, T> Send for DBVTBroadPhase<N, BV, T> where
BV: Send,
N: Scalar,
T: Send,
BV: Send,
N: Scalar,
T: Send,
impl<N, BV, T> Sync for DBVTBroadPhase<N, BV, T> where
BV: Sync,
N: Scalar,
T: Sync,
BV: Sync,
N: Scalar,
T: Sync,
impl<N, BV, T> Unpin for DBVTBroadPhase<N, BV, T> where
BV: Unpin,
N: Scalar + Unpin,
T: Unpin,
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,
BV: UnwindSafe,
N: Scalar + UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,