llSetVehicleRotationParam
function
Function syntax
llSetVehicleRotationParam(integer param,// VEHICLE_* rotation parameter constant to set. Values: VehicleRotationParamrotation rot// Rotation value to set.
);- Energy
- 10
Sets the specified vehicle rotation parameter param to rot.
Sets the vehicle rotation parameter param to rot.
llSetVehicleRotationParam(0, ZERO_ROTATION);Specification
Section titled “Specification”| Constant | Type | Description | |
|---|---|---|---|
VEHICLE_REFERENCE_FRAME | 44 | rotation | rotation of vehicle axes relative to local frame |
Examples
Section titled “Examples”The reference frame can be computed and set in two steps:
- Place the vehicle with front facing east(red arrow) and with left side facing north(green arrow)
llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME,ZERO_ROTATION/llGetRootRotation());
See also
Section titled “See also”Functions
Section titled “Functions”llSetVehicleFloatParam— Sets a vehicle float parameterllSetVehicleVectorParam— Sets a vehicle vector parmeter
Articles
Section titled “Articles”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.