R3d.Body:setAngularVelocity

From GiderosMobile

Available since: Gideros 2020.2
Class: R3d.Body

Description

Sets the body angular velocity.

r3d.Body:setAngularVelocity(avx,avy,avz)

Parameters

avx: (number) new body angular x velocity in meters per second
avy: (number) new body angular y velocity in meters per second
avz: (number) new body angular z velocity in meters per second

Example

player1.body:setAngularVelocity(0, 1, 0)