← Documentation Home

SetBodyAngularVelocity

Category: 2D Game Physics (Pro)

Back to System Functions


Signature

SetBodyAngularVelocity(body As Integer, angularVelocity As Double)

Returns

Void

Description

Sets a dynamic body's spin in degrees per second.

Performance and behavior

Calls on static or rotation-locked bodies have no effect.

Pro feature: requires GamePhysics.

Example

SetBodyAngularVelocity wheel, 180