Struct ncollide2df64::contact::Contact
pub struct Contact { world1: V, world2: V, normal: V, depth: N, }
Geometric description of a contact.
Fields
world1 | Position of the contact on the first object. The position is expressed in world space. |
world2 | Position of the contact on the second object. The position is expressed in world space. |
normal | Contact normal |
depth | Penetration depth |
Methods
impl Contact
impl Contact
fn flip(&mut self)
Reverts the contact normal and swaps world1
and world2
.
Trait Implementations
impl ToStr for Contact
Automatically derived.
fn to_str(&self) -> ~str
impl Eq for Contact
Automatically derived.
impl Clone for Contact
Automatically derived.
fn clone(&self) -> Contact
impl DeepClone for Contact
Automatically derived.
fn deep_clone(&self) -> Contact
impl<__E: Encoder> Encodable<__E> for Contact
Automatically derived.
fn encode(&self, __arg_0: &mut __E)
impl<__D: Decoder> Decodable<__D> for Contact
Automatically derived.