Vehicle Wheel

self:set_rotation

Shared

Sets the local rotation of the vehicle wheel

Syntax

local status = self:set_rotation(
    rotation
)

Parameters

TypeNameDescription
vector3rotationRotation to apply in degrees as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the local rotation of a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

entity:set_rotation({0, 90, 0})

On this page