Difference between revisions of "VEHICLE TYPE BALLOON/ja"
Jump to navigation
Jump to search
m (Changed Japanese term) |
|||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value=5 | |value=5 | ||
|desc= | |desc=気球。ホバーし、摩擦がありますが、偏向はありません。 | ||
===効果{{Anchor|Effects}}=== | ===効果{{Anchor|Effects}}=== | ||
乗物タイプを balloon (気球) に設定すると乗物モードが有効になり、かつ以下を実行したのと同じ効果が得られます: | 乗物タイプを balloon (気球) に設定すると乗物モードが有効になり、かつ以下を実行したのと同じ効果が得られます: | ||
< | <source lang="lsl2"> | ||
// uniform linear friction | // uniform linear friction | ||
llSetVehicleFloatParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, 5 ); | llSetVehicleFloatParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, 5 ); | ||
Line 48: | Line 48: | ||
| VEHICLE_FLAG_HOVER_UP_ONLY | | VEHICLE_FLAG_HOVER_UP_ONLY | ||
| VEHICLE_FLAG_LIMIT_MOTOR_UP ); | | VEHICLE_FLAG_LIMIT_MOTOR_UP ); | ||
</ | </source> | ||
|examples | |examples | ||
|constants={{!}} {{LSL Constants/Vehicle Types/ja}} | |constants={{!}} {{LSL Constants/Vehicle Types/ja}} |
Latest revision as of 14:50, 25 February 2016
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
解説
定数: integer VEHICLE_TYPE_BALLOON = 5;integer 定数 VEHICLE_TYPE_BALLOON の値は 5 です。
気球。ホバーし、摩擦がありますが、偏向はありません。
効果
乗物タイプを balloon (気球) に設定すると乗物モードが有効になり、かつ以下を実行したのと同じ効果が得られます:
// uniform linear friction
llSetVehicleFloatParam( VEHICLE_LINEAR_FRICTION_TIMESCALE, 5 );
// uniform angular friction
llSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, 10 );
// linear motor
llSetVehicleVectorParam( VEHICLE_LINEAR_MOTOR_DIRECTION, <0, 0, 0> );
llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_TIMESCALE, 5 );
llSetVehicleFloatParam( VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 60 );
// agular motor
llSetVehicleVectorParam( VEHICLE_ANGULAR_MOTOR_DIRECTION, <0, 0, 0> );
llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_TIMESCALE, 6 );
llSetVehicleFloatParam( VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 10 );
// hover
llSetVehicleFloatParam( VEHICLE_HOVER_HEIGHT, 5 );
llSetVehicleFloatParam( VEHICLE_HOVER_EFFICIENCY, 0.8 );
llSetVehicleFloatParam( VEHICLE_HOVER_TIMESCALE, 10 );
llSetVehicleFloatParam( VEHICLE_BUOYANCY, 1 );
// no linear deflection
llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0 );
llSetVehicleFloatParam( VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 5 );
// no angular deflection
llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0 );
llSetVehicleFloatParam( VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 5 );
// no vertical attractor
llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 1 );
llSetVehicleFloatParam( VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 1000 );
// no banking
llSetVehicleFloatParam( VEHICLE_BANKING_EFFICIENCY, 0 );
llSetVehicleFloatParam( VEHICLE_BANKING_MIX, 0.7 );
llSetVehicleFloatParam( VEHICLE_BANKING_TIMESCALE, 5 );
// default rotation of local frame
llSetVehicleRotationParam( VEHICLE_REFERENCE_FRAME, <0, 0, 0, 1> );
// remove all flags
llRemoveVehicleFlags( 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 );
関連記事
定数
|
関数
• | llSetVehicleType |