pub enum BroadPhase2Strategy {
Auto,
BruteForce,
SpatialHashGrid,
SweepAndPrune,
}Expand description
Strategy used for broad-phase 2D collision detection.
Variants§
Auto
Selects an implementation from the input shape.
BruteForce
Checks every pair.
SpatialHashGrid
Uses a spatial hash grid.
SweepAndPrune
Uses sweep and prune along the x axis.
Trait Implementations§
Source§impl Clone for BroadPhase2Strategy
impl Clone for BroadPhase2Strategy
Source§fn clone(&self) -> BroadPhase2Strategy
fn clone(&self) -> BroadPhase2Strategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BroadPhase2Strategy
Source§impl Debug for BroadPhase2Strategy
impl Debug for BroadPhase2Strategy
impl Eq for BroadPhase2Strategy
Source§impl PartialEq for BroadPhase2Strategy
impl PartialEq for BroadPhase2Strategy
Source§fn eq(&self, other: &BroadPhase2Strategy) -> bool
fn eq(&self, other: &BroadPhase2Strategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BroadPhase2Strategy
Auto Trait Implementations§
impl Freeze for BroadPhase2Strategy
impl RefUnwindSafe for BroadPhase2Strategy
impl Send for BroadPhase2Strategy
impl Sync for BroadPhase2Strategy
impl Unpin for BroadPhase2Strategy
impl UnsafeUnpin for BroadPhase2Strategy
impl UnwindSafe for BroadPhase2Strategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more