ビークルの基本設定パラメーター

llSetVehicleType(integer type)

  • VEHICLE_TYPE_NONE = 0 … ビークル解除
  • VEHICLE_TYPE_SLED = 1
  • VEHICLE_TYPE_CAR = 2
  • VEHICLE_TYPE_BOAT = 3
  • VEHICLE_TYPE_AIRPLANE = 4
  • VEHICLE_TYPE_BALOON = 5
uuVehicleAvailable(integer on){
    llSetStatus(STATUS_PHYSICS, on);
    llSetVehicleType(VEHICLE_TYPE_CAR * on);
}

VEHICLE_BOUYANCY

  • -1.0 … 2倍の重力
  • 0.0 … 標準状態
  • 1.0 … 最大の浮力
llSetVehicleFloatParam(VEHICLE_BOUYANCY, 0.0);

VEHICLE_REFERENCE_FRAME

llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, ZERO_ROTATION);

llSetVehicleFlags(integer flag);

付加するフラグ

llSetVehicleFlags(
    //VEHICLE_FLAG_NO_DEFLECTION_UP|
    VEHICLE_FLAG_LIMIT_ROLL_ONLY|
    //VEHICLE_FLAG_HOVER_WATER_ONLY|
    //VEHICLE_FLAG_HOVER_TERRAIN_ONLY|
    //VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT|
    //VEHICLE_FLAG_HOVER_UP_ONLY|
    //VEHICLE_FLAG_LIMIT_MOTOR_UP|   
    //VEHICLE_FLAG_MOUSELOOK_STEER|
    //VEHICLE_FLAG_MOUSELOOK_BANK|
    //VEHICLE_FLAG_CAMERA_DECOUPLED|
    0);

llRemoveVehicleFlags(integer flag);

除去するフラグ