pub struct ContactKey {
pub body_i: usize,
pub body_j: usize,
pub cell: [i64; 3],
}Expand description
A stable identifier for a contact across timesteps.
Ordered so that the pair (i, j) and (j, i) cannot collide, and so the
quantized point is read in the frame named by reference.
Fields§
§body_i: usizeThe lower-numbered body of the pair (Collision::WORLD = world).
body_j: usizeThe higher-numbered body of the pair (Collision::WORLD = world).
cell: [i64; 3]Contact point in body_i’s local frame, quantized to the cache’s grid.
Trait Implementations§
Source§impl Clone for ContactKey
impl Clone for ContactKey
Source§fn clone(&self) -> ContactKey
fn clone(&self) -> ContactKey
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 ContactKey
Source§impl Debug for ContactKey
impl Debug for ContactKey
impl Eq for ContactKey
Source§impl Hash for ContactKey
impl Hash for ContactKey
Source§impl PartialEq for ContactKey
impl PartialEq for ContactKey
impl StructuralPartialEq for ContactKey
Auto Trait Implementations§
impl Freeze for ContactKey
impl RefUnwindSafe for ContactKey
impl Send for ContactKey
impl Sync for ContactKey
impl Unpin for ContactKey
impl UnsafeUnpin for ContactKey
impl UnwindSafe for ContactKey
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