self:get_angular_velocity

Client

Retrieves the angular velocity of the vehicle body


Syntax

local velocity = self:get_angular_velocity()

Parameters

No parameters are accepted by this function

Returns

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

Examples

Get the angular velocity of a vehicle body
local entity = physics.vehicle.create()
local velocity = entity:get_angular_velocity()

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

On this page