Struct rhusics_core::BruteForce [−][src]
pub struct BruteForce;
Broad phase collision detection brute force implementation.
Will simply do bounding box intersection tests for all shape combinations.
Methods
impl BruteForce
[src]
impl BruteForce
pub fn find_collider_pairs<A>(&self, shapes: &[A]) -> Vec<(usize, usize)> where
A: HasBound,
<A as HasBound>::Bound: Discrete<<A as HasBound>::Bound>,
[src]
pub fn find_collider_pairs<A>(&self, shapes: &[A]) -> Vec<(usize, usize)> 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
impl Debug for BruteForce
[src]
impl Debug for BruteForce
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Default for BruteForce
[src]
impl Default for BruteForce
fn default() -> BruteForce
[src]
fn default() -> BruteForce
Returns the "default value" for a type. Read more
impl<A> BroadPhase<A> for BruteForce where
A: HasBound,
A::Bound: Discrete<A::Bound>,
[src]
impl<A> BroadPhase<A> for BruteForce where
A: HasBound,
A::Bound: Discrete<A::Bound>,
Auto Trait Implementations
impl Send for BruteForce
impl Send for BruteForce
impl Sync for BruteForce
impl Sync for BruteForce