Struct mgf::Contact [−][src]
A point of contact between two objects occurring during a timestep.
Contact models a contact point generated by at least one moving volumetric geometry and some other geometry.
Fields
a: Point3<f32>
Contact point at time of collision for collider in global coordinates.
b: Point3<f32>
Contact point at time of collision for collidee in global coordinates.
n: Vector3<f32>
Collision normal on the surface of the collider.
t: f32
Time of impact. This is guaranteed to be in the interal [0, 1]. Contacts with a time of 0 can be considered resting contacts or a contact from the previous frame.
Trait Implementations
impl Copy for Contact
[src]
impl Copy for Contact
impl Clone for Contact
[src]
impl Clone for Contact
fn clone(&self) -> Contact
[src]
fn clone(&self) -> Contact
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Contact
[src]
impl Debug for Contact
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Neg for Contact
[src]
impl Neg for Contact