Struct rhusics::collide::ContactEvent
[−]
[src]
pub struct ContactEvent<ID, P> where
P: EuclideanSpace,
P::Diff: Debug, { pub bodies: (ID, ID), pub contact: Contact<P>, }
Contains all the contacts found between two bodies in a single pass.
Type parameters
ID
: The ID type of the body. This is supplied by the user of the library. In the ECS case, this will beEntity
.V
: cgmath vector type
Fields
bodies: (ID, ID)
The ids of the two colliding bodies
contact: Contact<P>
The contact between the colliding bodies
Methods
impl<ID, P> ContactEvent<ID, P> where
ID: Clone + Debug,
P: EuclideanSpace,
P::Diff: VectorSpace + Zero + Debug,
[src]
ID: Clone + Debug,
P: EuclideanSpace,
P::Diff: VectorSpace + Zero + Debug,
fn new(bodies: (ID, ID), contact: Contact<P>) -> Self
[src]
Create a new contact set
fn new_single(strategy: CollisionStrategy, bodies: (ID, ID)) -> Self
[src]
Convenience function to create a contact set with a single Contact
.
Trait Implementations
impl<ID: Debug, P: Debug> Debug for ContactEvent<ID, P> where
P: EuclideanSpace,
P::Diff: Debug,
[src]
P: EuclideanSpace,
P::Diff: Debug,
impl<ID: Clone, P: Clone> Clone for ContactEvent<ID, P> where
P: EuclideanSpace,
P::Diff: Debug,
[src]
P: EuclideanSpace,
P::Diff: Debug,
fn clone(&self) -> ContactEvent<ID, P>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more