@adatechnology/game-items 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,6 +127,8 @@ var GameItems = (() => {
127
127
  };
128
128
  var MUST_DRAIN_QUEUE_IDS = /* @__PURE__ */ new Set([DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS, DEFERRED_QUEUE_ID.BREACH_CUT]);
129
129
  var ITEM_TOOLS = ["plunger"];
130
+ var BODY_FOAM_SURFACES = ["hands", "arms", "torso", "hair", "mouth"];
131
+ var WASH_SURFACES = [...BODY_FOAM_SURFACES, "brush"];
130
132
  var WARNED_KEY = /* @__PURE__ */ Symbol.for("@adatechnology/game-contracts.warned");
131
133
  var warnedKeys = () => {
132
134
  const holder = globalThis;
@@ -1019,6 +1021,11 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
1019
1021
  if (size[1] > max[1] + eps) return false;
1020
1022
  return size[0] <= max[0] + eps && size[2] <= max[2] + eps || size[2] <= max[0] + eps && size[0] <= max[2] + eps;
1021
1023
  }
1024
+ function laidSize(size, lay) {
1025
+ if (lay === "x") return [size[1], size[0], size[2]];
1026
+ if (lay === "z") return [size[0], size[2], size[1]];
1027
+ return size;
1028
+ }
1022
1029
  var pose = new Float64Array(7);
1023
1030
  var pose2 = new Float64Array(7);
1024
1031
 
@@ -1031,7 +1038,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
1031
1038
  const stackMax = item.stack ?? 1;
1032
1039
  let remaining = stack.count;
1033
1040
  while (remaining > 0) {
1034
- const index = slots.findIndex((slot, position) => contents[position] === null && fitsSize(item.size, slot.max));
1041
+ const index = slots.findIndex((slot, position) => contents[position] === null && fitsSize(laidSize(item.size, slot.lay), slot.max));
1035
1042
  if (index < 0) break;
1036
1043
  const qty = Math.min(remaining, stackMax);
1037
1044
  contents[index] = { type: item.id, qty, ...stack.data ? { data: { ...stack.data } } : {} };
@@ -2316,6 +2323,111 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
2316
2323
  }
2317
2324
  ]
2318
2325
  },
2326
+ {
2327
+ id: "rinse_dish",
2328
+ body: "two_hands",
2329
+ duration: 3,
2330
+ note: "the scrubbed dish brought under the running tap and turned so the water runs over one face and then the other, the foam and the rest of the dirt going with it, and back; played again while foam is left; the rinsing keys reach under the tap (aimHandUse)",
2331
+ keys: [
2332
+ {
2333
+ t: 0,
2334
+ position: [
2335
+ 0.22,
2336
+ -0.2,
2337
+ -0.4
2338
+ ],
2339
+ rotation: [
2340
+ 0,
2341
+ 0,
2342
+ 0
2343
+ ]
2344
+ },
2345
+ {
2346
+ t: 0.4,
2347
+ position: [
2348
+ 0,
2349
+ -0.55,
2350
+ -0.43
2351
+ ],
2352
+ rotation: [
2353
+ -0.5,
2354
+ 0,
2355
+ 0
2356
+ ],
2357
+ reach: true
2358
+ },
2359
+ {
2360
+ t: 0.95,
2361
+ position: [
2362
+ 0.02,
2363
+ -0.55,
2364
+ -0.43
2365
+ ],
2366
+ rotation: [
2367
+ -0.9,
2368
+ 0,
2369
+ 0.25
2370
+ ],
2371
+ reach: true
2372
+ },
2373
+ {
2374
+ t: 1.5,
2375
+ position: [
2376
+ -0.02,
2377
+ -0.55,
2378
+ -0.43
2379
+ ],
2380
+ rotation: [
2381
+ -0.2,
2382
+ 0,
2383
+ -0.25
2384
+ ],
2385
+ reach: true,
2386
+ action: "rinse"
2387
+ },
2388
+ {
2389
+ t: 2.05,
2390
+ position: [
2391
+ 0.02,
2392
+ -0.55,
2393
+ -0.43
2394
+ ],
2395
+ rotation: [
2396
+ -0.9,
2397
+ 0,
2398
+ 0.25
2399
+ ],
2400
+ reach: true
2401
+ },
2402
+ {
2403
+ t: 2.6,
2404
+ position: [
2405
+ 0,
2406
+ -0.55,
2407
+ -0.43
2408
+ ],
2409
+ rotation: [
2410
+ -0.5,
2411
+ 0,
2412
+ 0
2413
+ ],
2414
+ reach: true
2415
+ },
2416
+ {
2417
+ t: 3,
2418
+ position: [
2419
+ 0.22,
2420
+ -0.2,
2421
+ -0.4
2422
+ ],
2423
+ rotation: [
2424
+ 0,
2425
+ 0,
2426
+ 0
2427
+ ]
2428
+ }
2429
+ ]
2430
+ },
2319
2431
  {
2320
2432
  id: "fill_cup",
2321
2433
  body: "hand",
@@ -2604,6 +2716,849 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
2604
2716
  ]
2605
2717
  }
2606
2718
  ]
2719
+ },
2720
+ {
2721
+ id: "lather_body",
2722
+ body: "body",
2723
+ duration: 6.4,
2724
+ note: "bar soap rubbed between wet hands, then over the other forearm, the chest and the belly; foam left on each",
2725
+ keys: [
2726
+ {
2727
+ t: 0,
2728
+ position: [
2729
+ 0.22,
2730
+ -0.2,
2731
+ -0.4
2732
+ ],
2733
+ rotation: [
2734
+ 0,
2735
+ 0,
2736
+ 0
2737
+ ]
2738
+ },
2739
+ {
2740
+ t: 0.4,
2741
+ position: [
2742
+ 0.02,
2743
+ -0.22,
2744
+ -0.32
2745
+ ],
2746
+ rotation: [
2747
+ 0,
2748
+ 0,
2749
+ 1.5
2750
+ ]
2751
+ },
2752
+ {
2753
+ t: 0.7,
2754
+ position: [
2755
+ -0.04,
2756
+ -0.22,
2757
+ -0.32
2758
+ ],
2759
+ rotation: [
2760
+ 0,
2761
+ 0,
2762
+ 1.5
2763
+ ],
2764
+ action: "dose"
2765
+ },
2766
+ {
2767
+ t: 1,
2768
+ position: [
2769
+ 0.05,
2770
+ -0.22,
2771
+ -0.32
2772
+ ],
2773
+ rotation: [
2774
+ 0,
2775
+ 0,
2776
+ 1.5
2777
+ ],
2778
+ action: "lather",
2779
+ surface: "hands"
2780
+ },
2781
+ {
2782
+ t: 1.3,
2783
+ position: [
2784
+ -0.04,
2785
+ -0.22,
2786
+ -0.32
2787
+ ],
2788
+ rotation: [
2789
+ 0,
2790
+ 0,
2791
+ 1.5
2792
+ ]
2793
+ },
2794
+ {
2795
+ t: 1.75,
2796
+ position: [
2797
+ -0.2,
2798
+ -0.3,
2799
+ -0.3
2800
+ ],
2801
+ rotation: [
2802
+ 0,
2803
+ 0,
2804
+ 1.2
2805
+ ]
2806
+ },
2807
+ {
2808
+ t: 2.2,
2809
+ position: [
2810
+ -0.24,
2811
+ -0.2,
2812
+ -0.26
2813
+ ],
2814
+ rotation: [
2815
+ 0,
2816
+ 0,
2817
+ 1.2
2818
+ ],
2819
+ action: "lather",
2820
+ surface: "arms"
2821
+ },
2822
+ {
2823
+ t: 2.65,
2824
+ position: [
2825
+ -0.2,
2826
+ -0.3,
2827
+ -0.3
2828
+ ],
2829
+ rotation: [
2830
+ 0,
2831
+ 0,
2832
+ 1.2
2833
+ ]
2834
+ },
2835
+ {
2836
+ t: 3.1,
2837
+ position: [
2838
+ -0.24,
2839
+ -0.2,
2840
+ -0.26
2841
+ ],
2842
+ rotation: [
2843
+ 0,
2844
+ 0,
2845
+ 1.2
2846
+ ],
2847
+ action: "lather",
2848
+ surface: "arms"
2849
+ },
2850
+ {
2851
+ t: 3.55,
2852
+ position: [
2853
+ 0,
2854
+ -0.32,
2855
+ -0.24
2856
+ ],
2857
+ rotation: [
2858
+ 0,
2859
+ 0,
2860
+ 1.5
2861
+ ]
2862
+ },
2863
+ {
2864
+ t: 4,
2865
+ position: [
2866
+ -0.08,
2867
+ -0.34,
2868
+ -0.24
2869
+ ],
2870
+ rotation: [
2871
+ 0,
2872
+ 0,
2873
+ 1.5
2874
+ ],
2875
+ action: "lather",
2876
+ surface: "torso"
2877
+ },
2878
+ {
2879
+ t: 4.45,
2880
+ position: [
2881
+ 0.06,
2882
+ -0.32,
2883
+ -0.24
2884
+ ],
2885
+ rotation: [
2886
+ 0,
2887
+ 0,
2888
+ 1.5
2889
+ ]
2890
+ },
2891
+ {
2892
+ t: 4.9,
2893
+ position: [
2894
+ 0,
2895
+ -0.5,
2896
+ -0.26
2897
+ ],
2898
+ rotation: [
2899
+ 0,
2900
+ 0,
2901
+ 1.5
2902
+ ]
2903
+ },
2904
+ {
2905
+ t: 5.35,
2906
+ position: [
2907
+ -0.08,
2908
+ -0.52,
2909
+ -0.26
2910
+ ],
2911
+ rotation: [
2912
+ 0,
2913
+ 0,
2914
+ 1.5
2915
+ ],
2916
+ action: "lather",
2917
+ surface: "torso"
2918
+ },
2919
+ {
2920
+ t: 5.8,
2921
+ position: [
2922
+ 0.06,
2923
+ -0.5,
2924
+ -0.26
2925
+ ],
2926
+ rotation: [
2927
+ 0,
2928
+ 0,
2929
+ 1.5
2930
+ ]
2931
+ },
2932
+ {
2933
+ t: 6.4,
2934
+ position: [
2935
+ 0.22,
2936
+ -0.2,
2937
+ -0.4
2938
+ ],
2939
+ rotation: [
2940
+ 0,
2941
+ 0,
2942
+ 0
2943
+ ]
2944
+ }
2945
+ ]
2946
+ },
2947
+ {
2948
+ id: "shampoo_hair",
2949
+ body: "scalp",
2950
+ duration: 4.5,
2951
+ note: "shampoo poured from the bottle into the palm, then both hands rub the hair at the top of the head; foam left in the hair",
2952
+ keys: [
2953
+ {
2954
+ t: 0,
2955
+ position: [
2956
+ 0.22,
2957
+ -0.2,
2958
+ -0.4
2959
+ ],
2960
+ rotation: [
2961
+ 0,
2962
+ 0,
2963
+ 0
2964
+ ]
2965
+ },
2966
+ {
2967
+ t: 0.45,
2968
+ position: [
2969
+ 0.02,
2970
+ -0.16,
2971
+ -0.32
2972
+ ],
2973
+ rotation: [
2974
+ -2.4,
2975
+ 0,
2976
+ 0
2977
+ ]
2978
+ },
2979
+ {
2980
+ t: 0.8,
2981
+ position: [
2982
+ 0.02,
2983
+ -0.16,
2984
+ -0.32
2985
+ ],
2986
+ rotation: [
2987
+ -2.6,
2988
+ 0,
2989
+ 0
2990
+ ],
2991
+ action: "dose"
2992
+ },
2993
+ {
2994
+ t: 1.2,
2995
+ position: [
2996
+ 0.02,
2997
+ -0.2,
2998
+ -0.34
2999
+ ],
3000
+ rotation: [
3001
+ 0,
3002
+ 0,
3003
+ 0
3004
+ ]
3005
+ },
3006
+ {
3007
+ t: 1.65,
3008
+ position: [
3009
+ -0.05,
3010
+ 0.1,
3011
+ -0.06
3012
+ ],
3013
+ rotation: [
3014
+ 0,
3015
+ 0,
3016
+ 1.2
3017
+ ]
3018
+ },
3019
+ {
3020
+ t: 2.1,
3021
+ position: [
3022
+ 0.05,
3023
+ 0.1,
3024
+ -0.06
3025
+ ],
3026
+ rotation: [
3027
+ 0,
3028
+ 0,
3029
+ 1.2
3030
+ ],
3031
+ action: "lather",
3032
+ surface: "hair"
3033
+ },
3034
+ {
3035
+ t: 2.55,
3036
+ position: [
3037
+ -0.05,
3038
+ 0.1,
3039
+ -0.06
3040
+ ],
3041
+ rotation: [
3042
+ 0,
3043
+ 0,
3044
+ 1.2
3045
+ ]
3046
+ },
3047
+ {
3048
+ t: 3,
3049
+ position: [
3050
+ 0.05,
3051
+ 0.1,
3052
+ -0.06
3053
+ ],
3054
+ rotation: [
3055
+ 0,
3056
+ 0,
3057
+ 1.2
3058
+ ],
3059
+ action: "lather",
3060
+ surface: "hair"
3061
+ },
3062
+ {
3063
+ t: 3.45,
3064
+ position: [
3065
+ -0.05,
3066
+ 0.1,
3067
+ -0.06
3068
+ ],
3069
+ rotation: [
3070
+ 0,
3071
+ 0,
3072
+ 1.2
3073
+ ]
3074
+ },
3075
+ {
3076
+ t: 3.9,
3077
+ position: [
3078
+ 0.05,
3079
+ 0.1,
3080
+ -0.06
3081
+ ],
3082
+ rotation: [
3083
+ 0,
3084
+ 0,
3085
+ 1.2
3086
+ ],
3087
+ action: "lather",
3088
+ surface: "hair"
3089
+ },
3090
+ {
3091
+ t: 4.5,
3092
+ position: [
3093
+ 0.22,
3094
+ -0.2,
3095
+ -0.4
3096
+ ],
3097
+ rotation: [
3098
+ 0,
3099
+ 0,
3100
+ 0
3101
+ ]
3102
+ }
3103
+ ]
3104
+ },
3105
+ {
3106
+ id: "brush_teeth",
3107
+ body: "mouth",
3108
+ duration: 5.9,
3109
+ note: "toothpaste squeezed on the brush, the brush scrubbed side to side in the mouth, foam spat into the basin, the brush rinsed under the tap",
3110
+ keys: [
3111
+ {
3112
+ t: 0,
3113
+ position: [
3114
+ 0.22,
3115
+ -0.2,
3116
+ -0.4
3117
+ ],
3118
+ rotation: [
3119
+ 0,
3120
+ 0,
3121
+ 0
3122
+ ]
3123
+ },
3124
+ {
3125
+ t: 0.5,
3126
+ position: [
3127
+ 0.04,
3128
+ -0.2,
3129
+ -0.34
3130
+ ],
3131
+ rotation: [
3132
+ 0,
3133
+ 0,
3134
+ 1.5
3135
+ ]
3136
+ },
3137
+ {
3138
+ t: 0.9,
3139
+ position: [
3140
+ 0.04,
3141
+ -0.2,
3142
+ -0.34
3143
+ ],
3144
+ rotation: [
3145
+ 0,
3146
+ 0,
3147
+ 1.5
3148
+ ],
3149
+ action: "dose"
3150
+ },
3151
+ {
3152
+ t: 1.4,
3153
+ position: [
3154
+ 0.02,
3155
+ -0.06,
3156
+ -0.17
3157
+ ],
3158
+ rotation: [
3159
+ 0,
3160
+ 0,
3161
+ 1.5
3162
+ ]
3163
+ },
3164
+ {
3165
+ t: 1.7,
3166
+ position: [
3167
+ 0,
3168
+ -0.06,
3169
+ -0.17
3170
+ ],
3171
+ rotation: [
3172
+ 0,
3173
+ 0,
3174
+ 1.5
3175
+ ]
3176
+ },
3177
+ {
3178
+ t: 2,
3179
+ position: [
3180
+ 0.04,
3181
+ -0.06,
3182
+ -0.17
3183
+ ],
3184
+ rotation: [
3185
+ 0,
3186
+ 0,
3187
+ 1.5
3188
+ ],
3189
+ action: "lather",
3190
+ surface: "mouth"
3191
+ },
3192
+ {
3193
+ t: 2.3,
3194
+ position: [
3195
+ 0,
3196
+ -0.06,
3197
+ -0.17
3198
+ ],
3199
+ rotation: [
3200
+ 0,
3201
+ 0,
3202
+ 1.5
3203
+ ]
3204
+ },
3205
+ {
3206
+ t: 2.6,
3207
+ position: [
3208
+ 0.04,
3209
+ -0.06,
3210
+ -0.17
3211
+ ],
3212
+ rotation: [
3213
+ 0,
3214
+ 0,
3215
+ 1.5
3216
+ ],
3217
+ action: "lather",
3218
+ surface: "mouth"
3219
+ },
3220
+ {
3221
+ t: 2.9,
3222
+ position: [
3223
+ 0,
3224
+ -0.06,
3225
+ -0.17
3226
+ ],
3227
+ rotation: [
3228
+ 0,
3229
+ 0,
3230
+ 1.5
3231
+ ]
3232
+ },
3233
+ {
3234
+ t: 3.2,
3235
+ position: [
3236
+ 0.04,
3237
+ -0.06,
3238
+ -0.17
3239
+ ],
3240
+ rotation: [
3241
+ 0,
3242
+ 0,
3243
+ 1.5
3244
+ ],
3245
+ action: "lather",
3246
+ surface: "mouth"
3247
+ },
3248
+ {
3249
+ t: 3.5,
3250
+ position: [
3251
+ 0,
3252
+ -0.06,
3253
+ -0.17
3254
+ ],
3255
+ rotation: [
3256
+ 0,
3257
+ 0,
3258
+ 1.5
3259
+ ]
3260
+ },
3261
+ {
3262
+ t: 3.8,
3263
+ position: [
3264
+ 0.04,
3265
+ -0.06,
3266
+ -0.17
3267
+ ],
3268
+ rotation: [
3269
+ 0,
3270
+ 0,
3271
+ 1.5
3272
+ ],
3273
+ action: "lather",
3274
+ surface: "mouth"
3275
+ },
3276
+ {
3277
+ t: 4.2,
3278
+ position: [
3279
+ 0.02,
3280
+ -0.06,
3281
+ -0.2
3282
+ ],
3283
+ rotation: [
3284
+ 0,
3285
+ 0,
3286
+ 1.5
3287
+ ],
3288
+ action: "spit",
3289
+ surface: "mouth"
3290
+ },
3291
+ {
3292
+ t: 4.7,
3293
+ position: [
3294
+ 0.04,
3295
+ -0.34,
3296
+ -0.44
3297
+ ],
3298
+ rotation: [
3299
+ 0,
3300
+ 0,
3301
+ 1.5
3302
+ ]
3303
+ },
3304
+ {
3305
+ t: 5.3,
3306
+ position: [
3307
+ 0.04,
3308
+ -0.34,
3309
+ -0.44
3310
+ ],
3311
+ rotation: [
3312
+ 0,
3313
+ 0,
3314
+ 1.5
3315
+ ],
3316
+ action: "rinse",
3317
+ surface: "brush"
3318
+ },
3319
+ {
3320
+ t: 5.9,
3321
+ position: [
3322
+ 0.22,
3323
+ -0.2,
3324
+ -0.4
3325
+ ],
3326
+ rotation: [
3327
+ 0,
3328
+ 0,
3329
+ 0
3330
+ ]
3331
+ }
3332
+ ]
3333
+ },
3334
+ {
3335
+ id: "wash_hands",
3336
+ body: "two_hands",
3337
+ duration: 6.5,
3338
+ note: "hands wet under the tap, the bar rubbed between them into foam, rinsed under the water and shaken dry",
3339
+ keys: [
3340
+ {
3341
+ t: 0,
3342
+ position: [
3343
+ 0.22,
3344
+ -0.2,
3345
+ -0.4
3346
+ ],
3347
+ rotation: [
3348
+ 0,
3349
+ 0,
3350
+ 0
3351
+ ]
3352
+ },
3353
+ {
3354
+ t: 0.5,
3355
+ position: [
3356
+ 0,
3357
+ -0.34,
3358
+ -0.44
3359
+ ],
3360
+ rotation: [
3361
+ 0,
3362
+ 0,
3363
+ 1.5
3364
+ ]
3365
+ },
3366
+ {
3367
+ t: 1,
3368
+ position: [
3369
+ 0,
3370
+ -0.34,
3371
+ -0.44
3372
+ ],
3373
+ rotation: [
3374
+ 0,
3375
+ 0,
3376
+ 1.5
3377
+ ],
3378
+ action: "rinse",
3379
+ surface: "hands"
3380
+ },
3381
+ {
3382
+ t: 1.4,
3383
+ position: [
3384
+ 0.02,
3385
+ -0.26,
3386
+ -0.36
3387
+ ],
3388
+ rotation: [
3389
+ 0,
3390
+ 0,
3391
+ 1.5
3392
+ ],
3393
+ action: "dose"
3394
+ },
3395
+ {
3396
+ t: 1.7,
3397
+ position: [
3398
+ -0.04,
3399
+ -0.26,
3400
+ -0.36
3401
+ ],
3402
+ rotation: [
3403
+ 0,
3404
+ 0,
3405
+ 1.5
3406
+ ]
3407
+ },
3408
+ {
3409
+ t: 2,
3410
+ position: [
3411
+ 0.06,
3412
+ -0.26,
3413
+ -0.36
3414
+ ],
3415
+ rotation: [
3416
+ 0,
3417
+ 0,
3418
+ 1.5
3419
+ ],
3420
+ action: "lather",
3421
+ surface: "hands"
3422
+ },
3423
+ {
3424
+ t: 2.3,
3425
+ position: [
3426
+ -0.04,
3427
+ -0.26,
3428
+ -0.36
3429
+ ],
3430
+ rotation: [
3431
+ 0,
3432
+ 0,
3433
+ 1.5
3434
+ ]
3435
+ },
3436
+ {
3437
+ t: 2.6,
3438
+ position: [
3439
+ 0.06,
3440
+ -0.26,
3441
+ -0.36
3442
+ ],
3443
+ rotation: [
3444
+ 0,
3445
+ 0,
3446
+ 1.5
3447
+ ],
3448
+ action: "lather",
3449
+ surface: "hands"
3450
+ },
3451
+ {
3452
+ t: 2.9,
3453
+ position: [
3454
+ -0.04,
3455
+ -0.26,
3456
+ -0.36
3457
+ ],
3458
+ rotation: [
3459
+ 0,
3460
+ 0,
3461
+ 1.5
3462
+ ]
3463
+ },
3464
+ {
3465
+ t: 3.2,
3466
+ position: [
3467
+ 0.06,
3468
+ -0.26,
3469
+ -0.36
3470
+ ],
3471
+ rotation: [
3472
+ 0,
3473
+ 0,
3474
+ 1.5
3475
+ ],
3476
+ action: "lather",
3477
+ surface: "hands"
3478
+ },
3479
+ {
3480
+ t: 3.7,
3481
+ position: [
3482
+ 0,
3483
+ -0.34,
3484
+ -0.44
3485
+ ],
3486
+ rotation: [
3487
+ 0,
3488
+ 0,
3489
+ 1.5
3490
+ ]
3491
+ },
3492
+ {
3493
+ t: 4.6,
3494
+ position: [
3495
+ 0.04,
3496
+ -0.34,
3497
+ -0.44
3498
+ ],
3499
+ rotation: [
3500
+ 0,
3501
+ 0,
3502
+ 1.5
3503
+ ],
3504
+ action: "rinse",
3505
+ surface: "hands"
3506
+ },
3507
+ {
3508
+ t: 5.1,
3509
+ position: [
3510
+ 0.04,
3511
+ -0.24,
3512
+ -0.36
3513
+ ],
3514
+ rotation: [
3515
+ 0,
3516
+ 0,
3517
+ 1.5
3518
+ ]
3519
+ },
3520
+ {
3521
+ t: 5.5,
3522
+ position: [
3523
+ -0.02,
3524
+ -0.24,
3525
+ -0.36
3526
+ ],
3527
+ rotation: [
3528
+ 0,
3529
+ 0,
3530
+ 1.5
3531
+ ],
3532
+ action: "dry",
3533
+ surface: "hands"
3534
+ },
3535
+ {
3536
+ t: 5.9,
3537
+ position: [
3538
+ 0.04,
3539
+ -0.24,
3540
+ -0.36
3541
+ ],
3542
+ rotation: [
3543
+ 0,
3544
+ 0,
3545
+ 1.5
3546
+ ]
3547
+ },
3548
+ {
3549
+ t: 6.5,
3550
+ position: [
3551
+ 0.22,
3552
+ -0.2,
3553
+ -0.4
3554
+ ],
3555
+ rotation: [
3556
+ 0,
3557
+ 0,
3558
+ 0
3559
+ ]
3560
+ }
3561
+ ]
2607
3562
  }
2608
3563
  ];
2609
3564
 
@@ -2659,7 +3614,8 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
2659
3614
  const events = [];
2660
3615
  while (reached < actions.length && actions[reached].t <= time) {
2661
3616
  reached++;
2662
- events.push({ action: actions[reached - 1].action, share: reached / actions.length });
3617
+ const key = actions[reached - 1];
3618
+ events.push({ action: key.action, share: reached / actions.length, ...key.surface ? { surface: key.surface } : {} });
2663
3619
  }
2664
3620
  done = time >= def.duration;
2665
3621
  return events;