SensorEvents

data class SensorEvents(val beginEvents: List<SensorBeginTouchEvent>, val endEvents: List<SensorEndTouchEvent>)

Container for all sensor events from a simulation step.

Sensor events are collected after each call to World.step(). Call World.getSensorEvents() to retrieve them.

Parameters

beginEvents

List of shapes that entered sensors this step

endEvents

List of shapes that left sensors this step

Constructors

Link copied to clipboard
constructor(beginEvents: List<SensorBeginTouchEvent>, endEvents: List<SensorEndTouchEvent>)

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