setImpactEvents(state)
Impact event handling is disabled by default. Enable it before any impact events will be dispatched.
In a busy world hundreds of impact events can be generated every step, so only enable this if you cannot do what you need via beginContact or collision masks.
Parameters
| Name | Type | Description | 
|---|---|---|
state |  boolean | Set to true to enable impact events, or false to disable.  |  
- Source code: physics/p2/World.js (Line 393)
 
Please login to continue.