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]
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]
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 Default for BruteForce
[src]
fn default() -> BruteForce
[src]
Returns the "default value" for a type. Read more
impl Debug for BruteForce
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<A> BroadPhase<A> for BruteForce where
A: HasBound,
A::Bound: Discrete<A::Bound>,
[src]
A: HasBound,
A::Bound: Discrete<A::Bound>,