Skip to content
lsl.devlsl.devLSL Dev

llSetVehicleRotationParam

function
Function syntax
llSetVehicleRotationParam(
  1. integer param,// VEHICLE_* rotation parameter constant to set. Values: VehicleRotationParam
  2. rotation rot// Rotation value to set.
);
Energy
10

Sets the specified vehicle rotation parameter param to rot.

Sets the vehicle rotation parameter param to rot.

How to use
llSetVehicleRotationParam(0, ZERO_ROTATION);
ConstantTypeDescription
VEHICLE_REFERENCE_FRAME44rotationrotation of vehicle axes relative to local frame

The reference frame can be computed and set in two steps:

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.