BodyMoveEvent

data class BodyMoveEvent(val transform: Transform, val body: Body, val fellAsleep: Boolean)

An event for a body that moved during a simulation step.

Parameters

transform

The new transform of the body

body

The body that moved

fellAsleep

Whether the body fell asleep during this step

Constructors

Link copied to clipboard
constructor(transform: Transform, body: Body, fellAsleep: Boolean)

Properties

Link copied to clipboard
val body: Body
Link copied to clipboard
Link copied to clipboard