Struct nphysics2d::object::SensorCollisionGroups [] [src]

pub struct SensorCollisionGroups { /* fields omitted */ }

Groups of collision used to filter which object collide with which other one. nphysics use a specific group for its own purposes (i.e. the group of static objects). The group 29 is reserved and you cannot use it.

Methods

impl SensorCollisionGroups
[src]

[src]

Creates a new SensorCollisionGroups that enables collisions with every user-defined groups. Static objects and sensors are blacklisted by default and self-collision is disabled.

impl SensorCollisionGroups
[src]

[src]

The maximum allowed group identifier.

[src]

Return the internal, ncollide-compatible, CollisionGroups

[src]

Adds or removes this entity from the given group.

[src]

Adds or removes the given group from this entity whitelist.

[src]

Adds or removes this entity from the given group.

[src]

Make this object member of the given groups only.

[src]

Whitelists the given groups only (others will be un-whitelisted).

[src]

Blacklists the given groups only (others will be un-blacklisted).

[src]

Copies the membership of another collision groups.

[src]

Copies the whitelist of another collision groups.

[src]

Copies the blacklist of another collision groups.

[src]

Un-blacklists static objects.

[src]

Blacklists any static object.

[src]

Un-blacklists sensors.

[src]

Blacklists sensors.

[src]

Enables self interaction detection.

[src]

Disables self interaction detection.

[src]

Tests if this entity is part of the given group.

[src]

Tests if the given group is whitelisted.

[src]

Tests if the given group is blacklisted.

[src]

Tests whether collisions with a given group is possible.

Collision is possible if group_id is whitelisted but not blacklisted.

[src]

Tests whether two collision groups have at least one group in common.

[src]

Tests whether self-collision is enabled.

Trait Implementations

impl Clone for SensorCollisionGroups
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SensorCollisionGroups
[src]

[src]

Formats the value using the given formatter.

impl Copy for SensorCollisionGroups
[src]