Struct collide::CollisionInfo [−][src]
pub struct CollisionInfo<V: VectorSpace> {
pub self_contact: V,
pub other_contact: V,
pub vector: V,
}
Expand description
Information of a detected collision between colliders objects. The information is stored as elements of the specified vector space.
Fields
self_contact: V
The contact point at the first collider.
other_contact: V
The contact point at the other collider.
vector: V
The smallest vector by which the first collider needs to be moved, so the objects won’t touch each other anymore.
Trait Implementations
Auto Trait Implementations
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> UnwindSafe for CollisionInfo<V> where
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more