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]
fn default() -> DefaultInteractivity
Returns the "default value" for a type. Read more
impl Interactivity for DefaultInteractivity
[src]
fn can_interact(&self, _other: &Self) -> bool
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
fn group(&self) -> Option<Group>
Returns the group id associated with the hitbox. Default is Some(0)
. Read more
fn interact_groups(&self) -> &'static [Group]
Returns a list of groups that this hitbox can interact with. Using large lists of groups may be inefficient. Default is [0]
. Read more