public class SensorEvent extends EventObject
Sensor and a solid fixture.
These events are reported at the beginning and end of the contact,
to any listeners attached to the sensor.source| Modifier and Type | Method and Description |
|---|---|
Body |
getContactBody()
The body in contact with the sensor.
|
SolidFixture |
getContactFixture()
The fixture in contact with the sensor.
|
Sensor |
getSensor()
The sensor that has detected the contact.
|
String |
toString()
String representation of this event (for debugging purposes)
|
getSourcepublic String toString()
toString in class EventObjectpublic Body getContactBody()
public SolidFixture getContactFixture()
public Sensor getSensor()