VEHICLE_TYPE_BALLOON
constant
Constant
integer VEHICLE_TYPE_BALLOON = 5;Constant groups
Other VehicleType values (5)
Hover, and friction, but no deflection.
Effects
Section titled “Effects”Setting the vehicle type to balloon enables the vehicle system and additionally has the same effect of executing the following:
// uniform linear frictionllSetVehicleFloatParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, 5 );// uniform angular frictionllSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, 10 );// linear motorllSetVehicleVectorParam( VEHICLE_LINEAR_MOTOR_DIRECTION, <0, 0, 0> );llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_TIMESCALE, 5 );llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 60 );// agular motorllSetVehicleVectorParam( VEHICLE_ANGULAR_MOTOR_DIRECTION, <0, 0, 0> );llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_TIMESCALE, 6 );llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 10 );// hoverllSetVehicleFloatParam( VEHICLE_HOVER_HEIGHT, 5 );llSetVehicleFloatParam( VEHICLE_HOVER_EFFICIENCY, 0.8 );llSetVehicleFloatParam( VEHICLE_HOVER_TIMESCALE, 10 );llSetVehicleFloatParam( VEHICLE_BUOYANCY, 1 );// no linear deflectionllSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0 );llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 5 );// no angular deflectionllSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0 );llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 5 );// no vertical attractorllSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 1 );llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 1000 );// no bankingllSetVehicleFloatParam( VEHICLE_BANKING_EFFICIENCY, 0 );llSetVehicleFloatParam( VEHICLE_BANKING_MIX, 0.7 );llSetVehicleFloatParam( VEHICLE_BANKING_TIMESCALE, 5 );// default rotation of local framellSetVehicleRotationParam( VEHICLE_REFERENCE_FRAME, <0, 0, 0, 1> );// remove all flagsllRemoveVehicleFlags( VEHICLE_FLAG_NO_DEFLECTION_UP | VEHICLE_FLAG_HOVER_WATER_ONLY | VEHICLE_FLAG_LIMIT_ROLL_ONLY | VEHICLE_FLAG_HOVER_TERRAIN_ONLY | VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT | VEHICLE_FLAG_HOVER_UP_ONLY | VEHICLE_FLAG_LIMIT_MOTOR_UP );See also
Section titled “See also”Constants
Section titled “Constants”|
| Flags | Description | |
|---|---|---|
VEHICLE_TYPE_NONE | 0 | Turns off vehicle support |
VEHICLE_TYPE_SLED | 1 | Simple vehicle that bumps along the ground, and likes to move along its local x-axis |
VEHICLE_TYPE_CAR | 2 | Vehicle that bounces along the ground but needs the motors to be driven from external controls or timer events |
VEHICLE_TYPE_BOAT | 3 | Hovers over water with lots of friction and some angular deflection |
VEHICLE_TYPE_AIRPLANE | 4 | Uses linear deflection for lift, no hover, and banking to turn |
VEHICLE_TYPE_BALLOON | 5 | Hover, and friction, but no deflection |
Functions
Section titled “Functions”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.