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

TypeNameDescription
vector3velocityCurrent constant angular velocity as {x, y, z}

Examples

Get the constant angular velocity of a static body
local entity = physics.static.create()
local velocity = entity:get_constant_angular_velocity()

core.engine.print("info", "Static body velocity:", util.table.unpack(velocity))

On this page