Struct mgf::Contact
[−]
[src]
pub struct Contact {
pub a: Point3<f32>,
pub b: Point3<f32>,
pub n: Vector3<f32>,
pub t: f32,
}A contact is a collision between two objects where at least one object and has volume. A contact collision produces two contact points, a normal, and a time of impact in the interval [0, 1].
Fields
a: Point3<f32>
b: Point3<f32>
n: Vector3<f32>
t: f32
Methods
impl Contact[src]
fn compute_basis(&self) -> [Vector3<f32>; 2][src]
Computes an orthonormal basis for the contact. This is usually used to produce tangent vectors for friction contacts. Code taken from http://box2d.org/2014/02/computing-a-basis/
Trait Implementations
impl Copy for Contact[src]
impl Clone for Contact[src]
fn clone(&self) -> Contact[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more