VehicleType
Constants in the VehicleType enum.
integer VEHICLE_TYPE_AIRPLANE = 4; // Vehicle type constant for aircraft that use linear deflection for lift, banking to turn, and no hover.integer VEHICLE_TYPE_BALLOON = 5; // Vehicle type constant for balloons that use hover and friction but no deflection.integer VEHICLE_TYPE_BOAT = 3; // Vehicle type constant for boats that hover over water with high friction and minor angular deflection.integer VEHICLE_TYPE_CAR = 2; // Vehicle type constant for land vehicles that bounce along the ground and rely on external controls or timer events to drive their motors.integer VEHICLE_TYPE_NONE = 0; // Constant used to disable and turn off vehicle physics support on the object.integer VEHICLE_TYPE_SLED = 1; // Vehicle type constant for sliding vehicles that bump along the ground and prefer to move along their local X-axis.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
VEHICLE_TYPE_AIRPLANE | integer | 4 | Vehicle type constant for aircraft that use linear deflection for lift, banking to turn, and no hover. |
VEHICLE_TYPE_BALLOON | integer | 5 | Vehicle type constant for balloons that use hover and friction but no deflection. |
VEHICLE_TYPE_BOAT | integer | 3 | Vehicle type constant for boats that hover over water with high friction and minor angular deflection. |
VEHICLE_TYPE_CAR | integer | 2 | Vehicle type constant for land vehicles that bounce along the ground and rely on external controls or timer events to drive their motors. |
VEHICLE_TYPE_NONE | integer | 0 | Constant used to disable and turn off vehicle physics support on the object. |
VEHICLE_TYPE_SLED | integer | 1 | Vehicle type constant for sliding vehicles that bump along the ground and prefer to move along their local X-axis. |
Used by
llSetVehicleTypefunctionSets the vehicle physics preset type to one of the default vehicle types.