Sets the vehicle rotation parameter param to rot.

Syntax

void llSetVehicleRotationParam( integer param, rotation rot );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

integer param
VEHICLE_* flag
rotation rot

Constants

ConstantDescription
VEHICLE_REFERENCE_FRAME44rotation of vehicle axes relative to local frame

Examples

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

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

See also

Functions

Articles