Struct rhusics_core::BruteForce
source · pub struct BruteForce;
Expand description
Broad phase collision detection brute force implementation.
Will simply do bounding box intersection tests for all shape combinations.
Implementations
sourceimpl BruteForce
impl BruteForce
sourcepub fn find_collider_pairs<A>(&self, shapes: &[A]) -> Vec<(usize, usize), Global>where
A: HasBound,
<A as HasBound>::Bound: Discrete<<A as HasBound>::Bound>,
pub fn find_collider_pairs<A>(&self, shapes: &[A]) -> Vec<(usize, usize), Global>where
A: HasBound,
<A as HasBound>::Bound: Discrete<<A as HasBound>::Bound>,
Find all potentially colliding pairs of shapes.
Parameters
shapes
: Shapes to do find potential collisions for
Returns
Returns tuples with the into the shapes list, of all potentially colliding pairs. The first value in the tuple will always be first in the list.
Trait Implementations
sourceimpl<A> BroadPhase<A> for BruteForcewhere
A: HasBound,
A::Bound: Discrete<A::Bound>,
impl<A> BroadPhase<A> for BruteForcewhere
A: HasBound,
A::Bound: Discrete<A::Bound>,
sourceimpl Debug for BruteForce
impl Debug for BruteForce
sourceimpl Default for BruteForce
impl Default for BruteForce
sourcefn default() -> BruteForce
fn default() -> BruteForce
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BruteForce
impl Send for BruteForce
impl Sync for BruteForce
impl Unpin for BruteForce
impl UnwindSafe for BruteForce
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more