Linden Scripting Language Guide - Engineering Center
Linden Scripting Language Guide - Engineering Center
Linden Scripting Language Guide - Engineering Center
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Appendix C. Constants| VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT);// set these flagsllSetVehicleFlags( VEHICLE_FLAG_NO_DEFLECTION_UP| VEHICLE_FLAG_LIMIT_ROLL_ONLY| VEHICLE_FLAG_HOVER_UP_ONLY| VEHICLE_FLAG_LIMIT_MOTOR_UP );VEHICLE_TYPE_BOATHovers over water with lots of friction and some anglar deflection.// least for forward-back, most friction for up-downllSetVehicleVectorParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, );// uniform angular friction (setting it as a scalar rather than a vector)llSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, 10 );// linear motor wins after about five seconds, decays after about a minutellSetVehicleVectorParam( VEHICLE_LINEAR_MOTOR_DIRECTION, );llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_TIMESCALE, 5 );llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 60 );// agular motor wins after four seconds, decays in same amount of timellSetVehicleVectorParam( VEHICLE_ANGULAR_MOTOR_DIRECTION, );llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_TIMESCALE, 4 );llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 4 );// hoverllSetVehicleFloatParam( VEHICLE_HOVER_HEIGHT, 0 );llSetVehicleFloatParam( VEHICLE_HOVER_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_HOVER_TIMESCALE, 2.0 );llSetVehicleFloatParam( VEHICLE_BUOYANCY, 1 );// halfway linear deflection with timescale of 3 secondsllSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 3 );// angular deflectionllSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 5 );// somewhat bounscy vertical attractorllSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.5 );llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 5 );// weak negative damped bankingllSetVehicleFloatParam( VEHICLE_BANKING_EFFICIENCY, -0.3 );llSetVehicleFloatParam( VEHICLE_BANKING_MIX, 0.8 );llSetVehicleFloatParam( VEHICLE_BANKING_TIMESCALE, 1 );// default rotation of local framellSetVehicleRotationParam( VEHICLE_REFERENCE_FRAME, );// remove these flags115