Contact Events
data class ContactEvents(val beginEvents: List<ContactBeginTouchEvent>, val endEvents: List<ContactEndTouchEvent>, val hitEvents: List<ContactHitEvent>)
Container for all contact events from a simulation step.
Contact events are collected after each call to World.step(). Call World.getContactEvents() to retrieve them.
Parameters
begin Events
List of new contacts that started this step
end Events
List of contacts that ended this step
hit Events
List of high-speed impacts this step
Constructors
Link copied to clipboard
constructor(beginEvents: List<ContactBeginTouchEvent>, endEvents: List<ContactEndTouchEvent>, hitEvents: List<ContactHitEvent>)