Enum ncollide::world::GeometricQueryType [] [src]

pub enum GeometricQueryType<N> where N: Real {
    Contacts(N),
    Proximity(N),
}

The kind of query a CollisionObject may be involved on.

The following queries are executed for a given pair of GeometricQueryType associated with two collision objects:

  • Contacts + Contacts = exact contact point coputation.
  • Contacts + Proximity = proximity test only.
  • Proximity + Proximity = proximity test only.

Variants

This objects can respond to both contact point computation and proximity queries.

This object can respond to proximity tests only.

Methods

impl<N> GeometricQueryType<N> where N: Real
[src]

The numerical limit of relevance for this query.

If two objects are separated by a distance greater than the sum of their respective query_limit, the corresponding query will not by performed. For proximity queries, non-intersecting object closer than a distance equal to the sum of their query_limit will be reported as Proximity::WithinMargin.

Returns true if this is a contacts query type.

Returns true if this is a proximity query type.

Trait Implementations

impl<N> Decodable for GeometricQueryType<N> where N: Decodable + Real
[src]

impl<N> PartialEq<GeometricQueryType<N>> for GeometricQueryType<N> where N: PartialEq<N> + Real
[src]

impl<N> Copy for GeometricQueryType<N> where N: Copy + Real
[src]

impl<N> Debug for GeometricQueryType<N> where N: Debug + Real
[src]

impl<N> Encodable for GeometricQueryType<N> where N: Encodable + Real
[src]

impl<N> Clone for GeometricQueryType<N> where N: Clone + Real
[src]