[src]

Struct ncollide2df64::narrow::Empty

pub struct Empty<G1, G2> {
    // some fields omitted
}

A collision detector that does nothing.

Methods

impl<G1, G2> Empty<G1, G2>

fn new() -> Empty<G1, G2>

Creates a new empty collision detector.

Trait Implementations

impl<__E: Encoder, G1: Encodable<__E>, G2: Encodable<__E>> Encodable<__E> for Empty<G1, G2>

Automatically derived.

fn encode(&self, __arg_0: &mut __E)

impl<__D: Decoder, G1: Decodable<__D>, G2: Decodable<__D>> Decodable<__D> for Empty<G1, G2>

Automatically derived.

fn decode(__arg_0: &mut __D) -> Empty<G1, G2>

impl<G1, G2> CollisionDetector<G1, G2> for Empty<G1, G2>

fn update(&mut self, _: &M, _: &G1, _: &M, _: &G2)

Runs the collision detection on two objects. It is assumed that the same collision detector (the same structure) is always used with the same pair of object.

fn num_colls(&self) -> uint

The number of collision detected during the last update.

fn colls(&self, _: &mut ~[Contact])

Collects the collisions detected during the last update.

fn toi(_: Option<Empty<G1, G2>>, _: &M, _: &V, _: &N, _: &G1, _: &M, _: &G2) -> Option<N>

Computes the time of impact of two objects.

Arguments

  • m1 - the first object transform.
  • dir - the first object displacement direction.
  • dist - the first object displacement distance.
  • g1 - the first object.
  • m2 - the second object transform.
  • g2 - the second object.