Struct mgf::LocalContact[][src]

pub struct LocalContact {
    pub local_a: Point3<f32>,
    pub local_b: Point3<f32>,
    pub global: Contact,
}

A point of contact between two objects that includes the contact points for each object in terms of the object's center.

A LocalContact is derived from a regular Contact and includes all of the same information including the contact points in the local coordinates of the objects they belong to.

Fields

Global contact point a relative to the center of object a at the time of collision.

Global contact point b relative to the center of object b at the time of collision.

Contact the LocalContact was derived from.

Trait Implementations

impl Copy for LocalContact
[src]

impl Clone for LocalContact
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LocalContact
[src]

Formats the value using the given formatter. Read more

impl Neg for LocalContact
[src]

The resulting type after applying the - operator.

Negate the normal and swap contact points

impl From<LocalContact> for Manifold
[src]

Performs the conversion.

Auto Trait Implementations