// TOWN_07のカメラデータ // FieldMapCameraDataに登録されているEnumIntを利用するために必須 fmc <- FieldMapCameraData(); // 実際のデータ data <- [ { //a tlPosition = Vector3( -20.0, 0.0, 0.0), brPosition = Vector3( 9.0, 0.0, 6.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 10.0, radian = -10.0, lookRad = 30.0, position = Vector3( 7.0, 0.0, 3.0), }, { length = 6.0, radian = 0.0, lookRad = 10.0, position = Vector3( 2.0, 0.0, 3.0), }, { length = 6.0, radian = 0.0, lookRad = 10.0, position = Vector3( -6.0, 0.0, 3.0), }, { length = 10.0, radian = 43.0, lookRad = 50.0, position = Vector3( -14.0, 0.0, 6.0), }, ], }, { //b tlPosition = Vector3( -20.0, 0.0, -12.0), brPosition = Vector3( -14.0, 0.0, 0.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 8.0, radian = -5.0, lookRad = 10.0, position = Vector3( -20.0, 0.0, -12.0), }, { length = 8.0, radian = 0.0, lookRad = 10.0, position = Vector3( -20.0, 0.0, -3.0), }, { length = 10.0, radian = 43.0, lookRad = 50.0, position = Vector3( -20.0, 0.0, 0.0), }, ], }, { //c tlPosition = Vector3( -23.0, 0.0, -24.0), brPosition = Vector3( -11.0, 0.0, -12.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 10.0, radian = -100.0, lookRad = 20.0, position = Vector3( -17.0, 0.0, -14.0), }, { length = 8.0, radian = 0.0, lookRad = 20.0, position = Vector3( -17.0, 0.0, -21.0), }, ], }, { //d tlPosition = Vector3( -5.0, 0.0, -13.0), brPosition = Vector3( 1.0, 0.0, 0.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 8.0, radian = 0.0, lookRad = 10.0, position = Vector3( -2.0, 0.0, -2.0), }, { length = 8.0, radian = 0.0, lookRad = 10.0, position = Vector3( -2.0, 0.0, -10.0), }, ], }, { //e tlPosition = Vector3( -20.0, 0.0, 6.0), brPosition = Vector3( -14.0, 0.0, 15.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 10.0, radian = 43.0, lookRad = 50.0, position = Vector3( -17.0, 0.0, 6.0), }, { length = 10.0, radian = 0.0, lookRad = 30.0, position = Vector3( -17.0, 0.0, 10.0), }, { length = 10.0, radian = 0.0, lookRad = 30.0, position = Vector3( -17.0, 0.0, 13.0), }, { length = 10.0, radian = 43.0, lookRad = 30.0, position = Vector3( -17.0, 0.0, 15.0), }, ], }, { //f tlPosition = Vector3( -20.0, 0.0, 15.0), brPosition = Vector3( 10.0, 0.0, 22.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 10.0, radian = 43.0, lookRad = 30.0, position = Vector3( -14.0, 0.0, 18.0), }, { length = 12.0, radian = 0.0, lookRad = 10.0, position = Vector3( -6.0, 0.0, 18.0), }, { length = 12.0, radian = 0.0, lookRad = 10.0, position = Vector3( 2.0, 0.0, 18.0), }, { length = 10.0, radian = -10.0, lookRad = 20.0, position = Vector3( 7.0, 0.0, 18.0), }, ], }, { //g tlPosition = Vector3( -20.0, 0.0, 22.0), brPosition = Vector3( -14.0, 0.0, 42.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 10.0, radian = 43.0, lookRad = 30.0, position = Vector3( -17.0, 0.0, 22.0), }, { length = 7.0, radian = 90.0, lookRad = 30.0, position = Vector3( -17.0, 0.0, 24.0), }, { length = 7.0, radian = 90.0, lookRad = 30.0, position = Vector3( -17.0, 0.0, 26.0), }, { length = 10.0, radian = 110.0, lookRad = 20.0, position = Vector3( -17.0, 0.0, 33.0), }, ], }, { //h tlPosition = Vector3( -67.0, 0.0, -20.0), brPosition = Vector3( -58.0, 0.0, -8.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 10.0, radian = 120.0, lookRad = 30.0, position = Vector3( -63.0, 0.0, -17.0), }, ], }, { //i tlPosition = Vector3( 30.0, 0.0, -10.0), brPosition = Vector3( 60.0, 0.0, 17.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 8.0, radian = 180.0, lookRad = 20.0, position = Vector3( 52.0, 0.0, 0.0), }, ], }, { //j tlPosition = Vector3( -44.0, 0.0, -9.0), brPosition = Vector3( -34.0, 0.0, 3.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 8.0, radian = 180.0, lookRad = 20.0, position = Vector3( -39.0, 0.0, -5.0), }, ], }, { //k tlPosition = Vector3( -43.0, 0.0, 8.0), brPosition = Vector3( -35.0, 0.0, 20.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 10.0, radian = 120.0, lookRad = 30.0, position = Vector3( -39.0, 0.0, 13.0), }, ], }, { //l tlPosition = Vector3( -66.0, 0.0, 6.0), brPosition = Vector3( -58.0, 0.0, 19.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 8.0, radian = 180.0, lookRad = 20.0, position = Vector3( -62.0, 0.0, 9.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); } } }