pub struct CollisionInfo<V> {
pub self_contact: V,
pub other_contact: V,
pub vector: V,
}Expand description
Information about a detected collision between collider objects. The data is stored in the specified vector type.
Fields§
§self_contact: VContact point on the first collider.
other_contact: VContact point on the other collider.
vector: VSmallest displacement vector to move the first collider so objects no longer touch.
Trait Implementations§
Source§impl<V: Clone> Clone for CollisionInfo<V>
impl<V: Clone> Clone for CollisionInfo<V>
Source§fn clone(&self) -> CollisionInfo<V>
fn clone(&self) -> CollisionInfo<V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Debug> Debug for CollisionInfo<V>
impl<V: Debug> Debug for CollisionInfo<V>
Source§impl<V: Neg<Output = V>> Neg for CollisionInfo<V>
impl<V: Neg<Output = V>> Neg for CollisionInfo<V>
impl<V: Copy> Copy for CollisionInfo<V>
Auto Trait Implementations§
impl<V> Freeze for CollisionInfo<V>where
V: Freeze,
impl<V> RefUnwindSafe for CollisionInfo<V>where
V: RefUnwindSafe,
impl<V> Send for CollisionInfo<V>where
V: Send,
impl<V> Sync for CollisionInfo<V>where
V: Sync,
impl<V> Unpin for CollisionInfo<V>where
V: Unpin,
impl<V> UnsafeUnpin for CollisionInfo<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for CollisionInfo<V>where
V: 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