You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > setAngVel

19.4.19 setAngVel

self = physics.Body:setAngVel(vel)

Parameter

Type

Description

self

in physics.Body

The input Body

vel

in number

The angular velocity in radians per unit time of the Body

avel

out number

The input Body is returned as the output

Updates the angular velocity of the body. The angular velocity is in radians per unit time.

Returns the Body.

Introduced in platform.apiLevel = '2.0'