pub struct BroadPhase2Config {
pub strategy: BroadPhase2Strategy,
pub brute_force_threshold: usize,
pub max_cells_per_item: usize,
pub cell_size: SpatialCellSize2,
}Expand description
Options for 2D broad-phase collision detection.
Fields§
§strategy: BroadPhase2StrategyStrategy to use.
brute_force_threshold: usizeMaximum item count handled with brute force in auto mode.
max_cells_per_item: usizeMaximum cells a single item may span before auto mode uses sweep and prune.
cell_size: SpatialCellSize2Spatial hash grid cell size.
Implementations§
Trait Implementations§
Source§impl Clone for BroadPhase2Config
impl Clone for BroadPhase2Config
Source§fn clone(&self) -> BroadPhase2Config
fn clone(&self) -> BroadPhase2Config
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 BroadPhase2Config
Source§impl Debug for BroadPhase2Config
impl Debug for BroadPhase2Config
Source§impl Default for BroadPhase2Config
impl Default for BroadPhase2Config
impl Eq for BroadPhase2Config
Source§impl PartialEq for BroadPhase2Config
impl PartialEq for BroadPhase2Config
Source§fn eq(&self, other: &BroadPhase2Config) -> bool
fn eq(&self, other: &BroadPhase2Config) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BroadPhase2Config
Auto Trait Implementations§
impl Freeze for BroadPhase2Config
impl RefUnwindSafe for BroadPhase2Config
impl Send for BroadPhase2Config
impl Sync for BroadPhase2Config
impl Unpin for BroadPhase2Config
impl UnsafeUnpin for BroadPhase2Config
impl UnwindSafe for BroadPhase2Config
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