// TOWN_07のカメラデータ // FieldMapCameraDataに登録されているEnumIntを利用するために必須 fmc <- FieldMapCameraData(); // 実際のデータ data <- [ { //A tlPosition = Vector3( -8.0, 0.0, -10.0), brPosition = Vector3( 8.0, 0.0, 76.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 14.0, radian = -22.0, lookRad = 15.0, position = Vector3( 0.0, 0.0, 61.0), }, { length = 14.0, radian = -22.0, lookRad = 15.0, position = Vector3( 0.0, 0.0, 50.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 0.0, 0.0, 45.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 0.0, 0.0, 4.0), }, ], }, { //B tlPosition = Vector3( 8.0, 0.0, -48.0), brPosition = Vector3( 46.0, 0.0, 44.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 22.0, 0.0, 28.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 22.0, 0.0, 18.0), }, { length = 20.0, radian = 60.0, lookRad = 10.0, position = Vector3( 22.0, 0.0, 0.0), }, { length = 20.0, radian = 45.0, lookRad = 20.0, position = Vector3( 22.0, 0.0, -22.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 22.0, 0.0, -32.0), }, ], }, { //C tlPosition = Vector3( -46.0, 0.0, -48.0), brPosition = Vector3( -8.0, 0.0, 44.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -22.0, 0.0, 28.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -22.0, 0.0, 18.0), }, { length = 20.0, radian = -60.0, lookRad = 10.0, position = Vector3( 22.0, 0.0, 0.0), }, { length = 20.0, radian = -45.0, lookRad = 20.0, position = Vector3( -22.0, 0.0, -22.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -22.0, 0.0, -28.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -22.0, 0.0, -32.0), }, ], }, { //D tlPosition = Vector3( -8.0, 0.0, -68.0), brPosition = Vector3( 8.0, 0.0, -24.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 0.0, 0.0, -28.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 0.0, 0.0, -64.0), }, ], }, ]; // データ追加用関数 function ExeScript(object) { // データクリア object.loadDataClear(); // nutにあるデータを追加していく foreach(idx, val in ::data) { // 範囲エリア情報 object.loadDataAddArea(idx, val.tlPosition, val.brPosition, val.tag); // ポイント情報 foreach(idx2, val2 in val.data) { object.loadDataAddPoint(idx, idx2, val2.length, val2.radian, val2.lookRad, val2.position); } } }