pub struct CollisionPairs {
pub pairs: Vec<CollisionPair>,
}Expand description
Sink of potential collision pairs identified during broadphase.
Intended to live in [khora_core::Resources] as
Arc<Mutex<CollisionPairs>>: a broadphase pass overwrites the inner
pairs vector each frame and a resolution pass reads it.
Fields§
§pairs: Vec<CollisionPair>List of potential collision pairs detected this frame.
Trait Implementations§
Source§impl Clone for CollisionPairs
impl Clone for CollisionPairs
Source§fn clone(&self) -> CollisionPairs
fn clone(&self) -> CollisionPairs
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 moreSource§impl Debug for CollisionPairs
impl Debug for CollisionPairs
Source§impl Default for CollisionPairs
impl Default for CollisionPairs
Source§fn default() -> CollisionPairs
fn default() -> CollisionPairs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollisionPairs
impl<'de> Deserialize<'de> for CollisionPairs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CollisionPairs
impl RefUnwindSafe for CollisionPairs
impl Send for CollisionPairs
impl Sync for CollisionPairs
impl Unpin for CollisionPairs
impl UnsafeUnpin for CollisionPairs
impl UnwindSafe for CollisionPairs
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