[−][src]Trait rapier3d::pipeline::EventHandler
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
pub fn handle_proximity_event(&self, event: ProximityEvent)
[src]
Handle a proximity event.
A proximity event is emitted when the state of proximity between two colliders changes.
pub fn handle_contact_event(&self, event: ContactEvent)
[src]
Handle a contact event.
A contact event is emitted when two collider start or stop touching, independently from the number of contact points involved.