ContactEvents

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

beginEvents

List of new contacts that started this step

endEvents

List of contacts that ended this step

hitEvents

List of high-speed impacts this step

Constructors

Link copied to clipboard
constructor(beginEvents: List<ContactBeginTouchEvent>, endEvents: List<ContactEndTouchEvent>, hitEvents: List<ContactHitEvent>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

True if there are any events

Link copied to clipboard