# VEHICLE_REFERENCE_FRAME

*LSL constant*

```lsl
integer VEHICLE_REFERENCE_FRAME = 44;
```

Vehicle rotation parameter setting the orientation of the vehicle's preferred axes of motion (at, left, up) relative to its local geometric frame (x, y, z).

Constant groups: [VehicleRotationParam](/constants/groups/VehicleRotationParam/)

Used to set the rotation of vehicle axes relative to local frame.

## Examples

The rotation for the reference frame can be found in two steps:

- Place the vehicle with front facing east(red arrow) and with left side facing north(green arrow)
- now: [rotation](https://wiki.secondlife.com/wiki/rotation) refFrame = [ZERO_ROTATION](/constants/ZERO_ROTATION/) / [llGetRootRotation](/functions/llGetRootRotation/)();

## See also

### Functions

- [llSetVehicleRotationParam](/functions/llSetVehicleRotationParam/)

### Articles

- [Linden Vehicle Tutorial](https://wiki.secondlife.com/wiki/Linden_Vehicle_Tutorial)

---

*Source: [VEHICLE REFERENCE FRAME](https://wiki.secondlife.com/wiki/VEHICLE_REFERENCE_FRAME) on the Second Life Wiki. Content from the Second Life Wiki article VEHICLE REFERENCE FRAME (revision 1193479, 2014-09-17), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/VEHICLE_REFERENCE_FRAME/
