Struct collider::inter::DefaultInteractivity [] [src]

pub struct DefaultInteractivity;

The default implementation of Interactivity, in which every hitbox is allowed to interact with every other hitbox.

Trait Implementations

impl Default for DefaultInteractivity
[src]

Returns the "default value" for a type. Read more

impl Interactivity for DefaultInteractivity
[src]

Returns true if the pair of hitboxes should be checked for collisions. This method should be commutative. This method should be consistent with group and interact_groups, although possibly more restrictive. Read more

Returns the group id associated with the hitbox. Default is Some(0). Read more

Returns a list of groups that this hitbox can interact with. Using large lists of groups may be inefficient. Default is [0]. Read more