Skip to content

llSetVehicleRotationParam

void llSetVehicleRotationParam(integer ParameterName, rotation ParameterValue)

Sets a vehicle rotation parameter.

Valid parameters can be found in the wiki documentation.

Parameters
ParameterName (integer)
ParameterValue (rotation)

Setting the vehicle reference frame to align with world axes (front facing east, left side facing north):

  1. Place the vehicle with front facing east (red arrow) and with left side facing north (green arrow)
  2. Set the reference frame using:
llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, ZERO_ROTATION / llGetRootRotation());