pub struct CollisionEvent<C> {
pub entity1: Entity,
pub entity2: Entity,
pub position1: Position<C>,
pub position2: Position<C>,
}Expand description
Event representing a collision between two entities.
Fields§
§entity1: EntityFirst entity in collision
entity2: EntitySecond entity in collision
position1: Position<C>Position of first entity
position2: Position<C>Position of second entity
Trait Implementations§
Source§impl<C: Clone> Clone for CollisionEvent<C>
impl<C: Clone> Clone for CollisionEvent<C>
Source§fn clone(&self) -> CollisionEvent<C>
fn clone(&self) -> CollisionEvent<C>
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 moreAuto Trait Implementations§
impl<C> Freeze for CollisionEvent<C>where
C: Freeze,
impl<C> RefUnwindSafe for CollisionEvent<C>where
C: RefUnwindSafe,
impl<C> Send for CollisionEvent<C>where
C: Send,
impl<C> Sync for CollisionEvent<C>where
C: Sync,
impl<C> Unpin for CollisionEvent<C>where
C: Unpin,
impl<C> UnsafeUnpin for CollisionEvent<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for CollisionEvent<C>where
C: UnwindSafe,
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