self:get_angular_velocity
Client
Retrieves the angular velocity of the rigid body
Syntax
local velocity = self:get_angular_velocity()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | velocity | Current angular velocity as {x, y, z} |
Examples
local entity = physics.rigid.create()
local velocity = entity:get_angular_velocity()
core.engine.print("info", "Rigid body velocity:", util.table.unpack(velocity))