Vehicle Wheel

self:set_quaternion

Shared

Sets the local rotation of the vehicle wheel using a quaternion

Syntax

local status = self:set_quaternion(
    quaternion
)

Parameters

TypeNameDescription
quaternionquaternionRotation to apply as {x, y, z, w}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

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

On this page