Trait heron::rapier_plugin::rapier::ncollide::pipeline::broad_phase::BroadPhase[][src]

pub trait BroadPhase<N, BV, T>: Send + Sync + Any where
    N: RealField
{ pub fn create_proxy(&mut self, bv: BV, data: T) -> BroadPhaseProxyHandle;
pub fn proxy(&self, handle: BroadPhaseProxyHandle) -> Option<(&BV, &T)>;
pub fn remove(
        &mut self,
        handles: &[BroadPhaseProxyHandle],
        removal_handler: &mut dyn FnMut(&T, &T)
    );
pub fn deferred_set_bounding_volume(
        &mut self,
        handle: BroadPhaseProxyHandle,
        bv: BV
    );
pub fn deferred_recompute_all_proximities_with(
        &mut self,
        handle: BroadPhaseProxyHandle
    );
pub fn deferred_recompute_all_proximities(&mut self);
pub fn update(&mut self, handler: &mut dyn BroadPhaseInterferenceHandler<T>);
pub fn interferences_with_bounding_volume(
        &'a self,
        bv: &BV,
        out: &mut Vec<&'a T, Global>
    );
pub fn interferences_with_ray(
        &'a self,
        ray: &Ray<N>,
        max_toi: N,
        out: &mut Vec<&'a T, Global>
    );
pub fn interferences_with_point(
        &'a self,
        point: &Point<N, U3>,
        out: &mut Vec<&'a T, Global>
    );
pub fn first_interference_with_ray(
        &'a self,
        ray: &'b Ray<N>,
        max_toi: N,
        cost_fn: &'a (dyn Fn(T, &'b Ray<N>, N) + 'a)
    ) -> Option<(T, RayIntersection<N>)>; }

Trait all broad phase must implement.

Required methods

pub fn create_proxy(&mut self, bv: BV, data: T) -> BroadPhaseProxyHandle[src]

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

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

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

pub fn remove(
    &mut self,
    handles: &[BroadPhaseProxyHandle],
    removal_handler: &mut dyn FnMut(&T, &T)
)
[src]

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

pub fn deferred_set_bounding_volume(
    &mut self,
    handle: BroadPhaseProxyHandle,
    bv: BV
)
[src]

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

pub fn deferred_recompute_all_proximities_with(
    &mut self,
    handle: BroadPhaseProxyHandle
)
[src]

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

pub fn deferred_recompute_all_proximities(&mut self)[src]

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

pub fn update(&mut self, handler: &mut dyn BroadPhaseInterferenceHandler<T>)[src]

Updates the object additions, removals, and interferences detection.

pub fn interferences_with_bounding_volume(
    &'a self,
    bv: &BV,
    out: &mut Vec<&'a T, Global>
)
[src]

Collects every object which might intersect a given bounding volume.

pub fn interferences_with_ray(
    &'a self,
    ray: &Ray<N>,
    max_toi: N,
    out: &mut Vec<&'a T, Global>
)
[src]

Collects every object which might intersect a given ray.

pub fn interferences_with_point(
    &'a self,
    point: &Point<N, U3>,
    out: &mut Vec<&'a T, Global>
)
[src]

Collects every object which might contain a given point.

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

Loading content...

Implementors

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

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

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

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

Returns the first object that interferes with a ray.

Loading content...