[][src]Trait rapier2d::pipeline::EventHandler

pub trait EventHandler: Send + Sync {
    fn handle_proximity_event(&self, event: ProximityEvent);
fn handle_contact_event(&self, event: ContactEvent); }

Trait implemented by structures responsible for handling events generated by the physics engine.

Implementors of this trait will typically collect these events for future processing.

Required methods

fn handle_proximity_event(&self, event: ProximityEvent)

Handle a proximity event.

A proximity event is emitted when the state of proximity between two colliders changes.

fn handle_contact_event(&self, event: ContactEvent)

Handle a contact event.

A contact event is emitted when two collider start or stop touching, independently from the number of contact points involved.

Loading content...

Implementations on Foreign Types

impl EventHandler for ()[src]

Loading content...

Implementors

Loading content...