self:get_constant_angular_velocity
Client
Retrieves the constant angular velocity applied by the static body to bodies resting on it
Syntax
local velocity = self:get_constant_angular_velocity()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | velocity | Current constant angular velocity as {x, y, z} |
Examples
local entity = physics.static.create()
local velocity = entity:get_constant_angular_velocity()
core.engine.print("info", "Static body velocity:", util.table.unpack(velocity))