self:set_angular_velocity

Client

Sets the angular velocity of the vehicle body


Syntax

local status = self:set_angular_velocity(
    velocity
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

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

On this page