Boks2D
Toggle table of contents
0.1.1
common
Target filter
common
Switch theme
Search in API
Skip to content
Boks2D
Boks2D
/
io.github.joaomcl.boks2d.core
/
Body
/
applyTorque
apply
Torque
expect
fun
applyTorque
(
torque
:
Float
,
wake
:
Boolean
=
true
)
Apply a torque.
Parameters
torque
The torque about the z-axis (usually in N*m)
wake
Whether to wake up the body if sleeping