Box2D

expect object Box2D

Global Box2D functions.

Functions

Link copied to clipboard

Compute the rotation between two unit vectors.

Link copied to clipboard

Get the current length units per meter setting.

Link copied to clipboard
expect fun getVersion(): Version

Get the current Box2D version.

Link copied to clipboard
expect fun setLengthUnitsPerMeter(lengthUnits: Float)

Set the length units per meter. Box2D uses meters internally. Adjust this if your game uses a different unit system (e.g. pixels).