pub struct ContactData {
pub contact_id: ContactId,
pub shape_id_a: ShapeId,
pub shape_id_b: ShapeId,
pub manifold: Manifold,
}Expand description
Contact data for a single contact touching two shapes in one completed-step epoch.
Its ContactId expires before the next valid world step enters Box2D.
Fields§
§contact_id: ContactId§shape_id_a: ShapeId§shape_id_b: ShapeId§manifold: ManifoldTrait Implementations§
Source§impl Clone for ContactData
impl Clone for ContactData
Source§fn clone(&self) -> ContactData
fn clone(&self) -> ContactData
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 ContactData
Auto Trait Implementations§
impl Freeze for ContactData
impl RefUnwindSafe for ContactData
impl Send for ContactData
impl Sync for ContactData
impl Unpin for ContactData
impl UnsafeUnpin for ContactData
impl UnwindSafe for ContactData
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