self:set_constant_angular_velocity

Client

Sets the constant angular velocity the static body applies to bodies resting on it


Syntax

local status = self:set_constant_angular_velocity(
    velocity
)

Parameters

TypeNameDescription
vector3velocityAngular velocity to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_constant_angular_velocity({0, 1, 0})

On this page