// TOWN_07のカメラデータ // FieldMapCameraDataに登録されているEnumIntを利用するために必須 fmc <- FieldMapCameraData(); // 実際のデータ data <- [ { //a tlPosition = Vector3( -6.0, 0.0, -28.0), brPosition = Vector3( 6.0, 0.0, 6.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 10.0, radian = 0.0, lookRad = 0.0, position = Vector3( 0.0, 0.0, 2.0), }, { length = 25.0, radian = 10.0, lookRad = 5.0, position = Vector3( 0.0, 0.0, -2.0), }, { length = 25.0, radian = 10.0, lookRad = 5.0, position = Vector3( 0.0, 0.0, -28.0), }, ], }, { //b tlPosition = Vector3( -18.0, 0.0, -36.0), brPosition = Vector3( -6.0, 0.0, -16.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 25.0, radian = 10.0, lookRad = 5.0, position = Vector3( -14.0, 0.0, -24.0), }, { length = 10.0, radian = 0.0, lookRad = 0.0, position = Vector3( -14.0, 0.0, -21.0), }, ], }, { //c tlPosition = Vector3( 6.0, 0.0, -28.0), brPosition = Vector3( 14.0, 0.0, -14.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 25.0, radian = 10.0, lookRad = 5.0, position = Vector3( 12.0, 0.0, -22.0), }, { length = 10.0, radian = 0.0, lookRad = 0.0, position = Vector3( 12.0, 0.0, -18.0), }, ], }, { //d tlPosition = Vector3( 6.0, 0.0, -8.0), brPosition = Vector3( 30.0, 0.0, 18.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 25.0, radian = 10.0, lookRad = 5.0, position = Vector3( 26.0, 0.0, 8.0), }, { length = 10.0, radian = 0.0, lookRad = 0.0, position = Vector3( 26.0, 0.0, 14.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); } } }