Struct ncollide::query::Contact [] [src]

pub struct Contact<P> where
    P: Point
{ pub world1: P, pub world2: P, pub normal: <P as Point>::Vector, pub depth: <P as EuclideanSpace>::Real, }

Geometric description of a contact.

Fields

Position of the contact on the first object. The position is expressed in world space.

Position of the contact on the second object. The position is expressed in world space.

Contact normal

Penetration depth

Methods

impl<P> Contact<P> where
    P: Point
[src]

Creates a new contact.

impl<P> Contact<P> where
    P: Point
[src]

Reverts the contact normal and swaps world1 and world2.

Trait Implementations

impl<P> Clone for Contact<P> where
    P: Clone + Point,
    <P as Point>::Vector: Clone,
    <P as EuclideanSpace>::Real: Clone
[src]

impl<P> Decodable for Contact<P> where
    P: Decodable + Point,
    <P as Point>::Vector: Decodable,
    <P as EuclideanSpace>::Real: Decodable
[src]

impl<P> Encodable for Contact<P> where
    P: Encodable + Point,
    <P as Point>::Vector: Encodable,
    <P as EuclideanSpace>::Real: Encodable
[src]

impl<P> Debug for Contact<P> where
    P: Debug + Point,
    <P as Point>::Vector: Debug,
    <P as EuclideanSpace>::Real: Debug
[src]

impl<P> PartialEq<Contact<P>> for Contact<P> where
    P: PartialEq<P> + Point,
    <P as Point>::Vector: PartialEq<<P as Point>::Vector>,
    <P as EuclideanSpace>::Real: PartialEq<<P as EuclideanSpace>::Real>, 
[src]