[][src]Struct parry3d::query::TrackedContact

pub struct TrackedContact<Data> {
    pub local_p1: Point<Real>,
    pub local_p2: Point<Real>,
    pub dist: Real,
    pub fid1: u32,
    pub fid2: u32,
    pub data: Data,
}

A single contact between two shape.

Fields

local_p1: Point<Real>

The contact point in the local-space of the first shape.

local_p2: Point<Real>

The contact point in the local-space of the second shape.

dist: Real

The distance between the two contact points.

fid1: u32

The feature ID of the first shape involved in the contact.

fid2: u32

The feature ID of the second shape involved in the contact.

data: Data

User-data associated to this contact.

Implementations

impl<Data: Default + Copy> TrackedContact<Data>[src]

pub fn new(
    local_p1: Point<Real>,
    local_p2: Point<Real>,
    fid1: u32,
    fid2: u32,
    dist: Real
) -> Self
[src]

Creates a new tracked contact.

pub fn flipped(
    local_p1: Point<Real>,
    local_p2: Point<Real>,
    fid1: u32,
    fid2: u32,
    dist: Real,
    flipped: bool
) -> Self
[src]

Creates a new tracked contact where its input may need to be flipped.

pub fn copy_geometry_from(&mut self, contact: Self)[src]

Copy to self the geometric information from contact.

Trait Implementations

impl<Data: Clone> Clone for TrackedContact<Data>[src]

impl<Data: Copy> Copy for TrackedContact<Data>[src]

impl<Data: Debug> Debug for TrackedContact<Data>[src]

Auto Trait Implementations

impl<Data> RefUnwindSafe for TrackedContact<Data> where
    Data: RefUnwindSafe
[src]

impl<Data> Send for TrackedContact<Data> where
    Data: Send
[src]

impl<Data> Sync for TrackedContact<Data> where
    Data: Sync
[src]

impl<Data> Unpin for TrackedContact<Data> where
    Data: Unpin
[src]

impl<Data> UnwindSafe for TrackedContact<Data> where
    Data: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,