@adatechnology/game-interactables-household 0.8.7 → 0.10.0

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.
@@ -180,6 +180,8 @@ var GameInteractablesHousehold = (() => {
180
180
  [DEFERRED_QUEUE_ID.DESTRUCTION_PREFIT]: { priority: 40, phase: "idle", minEveryFrames: 30 }
181
181
  };
182
182
  var MUST_DRAIN_QUEUE_IDS = /* @__PURE__ */ new Set([DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS, DEFERRED_QUEUE_ID.BREACH_CUT]);
183
+ var BODY_FOAM_SURFACES = ["hands", "arms", "torso", "hair", "mouth"];
184
+ var WASH_SURFACES = [...BODY_FOAM_SURFACES, "brush"];
183
185
  var WARNED_KEY = /* @__PURE__ */ Symbol.for("@adatechnology/game-contracts.warned");
184
186
  var warnedKeys = () => {
185
187
  const holder = globalThis;
@@ -482,6 +484,2313 @@ var GameInteractablesHousehold = (() => {
482
484
  };
483
485
  var MM = 1e-3;
484
486
  var BOX_WALL = 6 * MM;
487
+ var hand_uses_default = [
488
+ {
489
+ id: "eat_food",
490
+ body: "mouth",
491
+ duration: 3.4,
492
+ note: "three bites: the food to the mouth, a bite, down a little to chew, and again",
493
+ keys: [
494
+ {
495
+ t: 0,
496
+ position: [
497
+ 0.22,
498
+ -0.2,
499
+ -0.4
500
+ ],
501
+ rotation: [
502
+ 0,
503
+ 0,
504
+ 0
505
+ ]
506
+ },
507
+ {
508
+ t: 0.45,
509
+ position: [
510
+ 0.01,
511
+ 0,
512
+ -0.17
513
+ ],
514
+ rotation: [
515
+ -0.3,
516
+ 0,
517
+ 0
518
+ ],
519
+ action: "bite"
520
+ },
521
+ {
522
+ t: 0.8,
523
+ position: [
524
+ 0.05,
525
+ -0.08,
526
+ -0.26
527
+ ],
528
+ rotation: [
529
+ -0.15,
530
+ 0,
531
+ 0
532
+ ]
533
+ },
534
+ {
535
+ t: 1.25,
536
+ position: [
537
+ 0.01,
538
+ 0,
539
+ -0.17
540
+ ],
541
+ rotation: [
542
+ -0.3,
543
+ 0,
544
+ 0
545
+ ],
546
+ action: "bite"
547
+ },
548
+ {
549
+ t: 1.6,
550
+ position: [
551
+ 0.05,
552
+ -0.08,
553
+ -0.26
554
+ ],
555
+ rotation: [
556
+ -0.15,
557
+ 0,
558
+ 0
559
+ ]
560
+ },
561
+ {
562
+ t: 2.05,
563
+ position: [
564
+ 0.01,
565
+ 0,
566
+ -0.17
567
+ ],
568
+ rotation: [
569
+ -0.3,
570
+ 0,
571
+ 0
572
+ ],
573
+ action: "bite"
574
+ },
575
+ {
576
+ t: 2.8,
577
+ position: [
578
+ 0.05,
579
+ -0.08,
580
+ -0.26
581
+ ],
582
+ rotation: [
583
+ -0.15,
584
+ 0,
585
+ 0
586
+ ]
587
+ },
588
+ {
589
+ t: 3.4,
590
+ position: [
591
+ 0.22,
592
+ -0.2,
593
+ -0.4
594
+ ],
595
+ rotation: [
596
+ 0,
597
+ 0,
598
+ 0
599
+ ]
600
+ }
601
+ ]
602
+ },
603
+ {
604
+ id: "drink",
605
+ body: "mouth",
606
+ duration: 2.5,
607
+ note: "a drink without a liquid of its own (a juice box): to the mouth and tipped up, as the fluid drink",
608
+ keys: [
609
+ {
610
+ t: 0,
611
+ position: [
612
+ 0.22,
613
+ -0.2,
614
+ -0.4
615
+ ],
616
+ rotation: [
617
+ 0,
618
+ 0,
619
+ 0
620
+ ]
621
+ },
622
+ {
623
+ t: 0.5,
624
+ position: [
625
+ 0,
626
+ 0.02,
627
+ -0.2
628
+ ],
629
+ rotation: [
630
+ 0,
631
+ 0,
632
+ 0
633
+ ]
634
+ },
635
+ {
636
+ t: 0.8,
637
+ position: [
638
+ 0,
639
+ 0.02,
640
+ -0.2
641
+ ],
642
+ rotation: [
643
+ -1.22,
644
+ 0,
645
+ 0
646
+ ],
647
+ action: "swallow"
648
+ },
649
+ {
650
+ t: 2,
651
+ position: [
652
+ 0,
653
+ 0.02,
654
+ -0.2
655
+ ],
656
+ rotation: [
657
+ -1.22,
658
+ 0,
659
+ 0
660
+ ]
661
+ },
662
+ {
663
+ t: 2.5,
664
+ position: [
665
+ 0.22,
666
+ -0.2,
667
+ -0.4
668
+ ],
669
+ rotation: [
670
+ 0,
671
+ 0,
672
+ 0
673
+ ]
674
+ }
675
+ ]
676
+ },
677
+ {
678
+ id: "take_medicine",
679
+ body: "mouth",
680
+ duration: 2.6,
681
+ note: "the box before the chest, shaken for a pill, the pill to the mouth and swallowed",
682
+ keys: [
683
+ {
684
+ t: 0,
685
+ position: [
686
+ 0.22,
687
+ -0.2,
688
+ -0.4
689
+ ],
690
+ rotation: [
691
+ 0,
692
+ 0,
693
+ 0
694
+ ]
695
+ },
696
+ {
697
+ t: 0.4,
698
+ position: [
699
+ 0.06,
700
+ -0.16,
701
+ -0.3
702
+ ],
703
+ rotation: [
704
+ 0,
705
+ 0,
706
+ 0
707
+ ]
708
+ },
709
+ {
710
+ t: 0.65,
711
+ position: [
712
+ 0.06,
713
+ -0.16,
714
+ -0.3
715
+ ],
716
+ rotation: [
717
+ 0,
718
+ 0,
719
+ 0.5
720
+ ]
721
+ },
722
+ {
723
+ t: 0.85,
724
+ position: [
725
+ 0.06,
726
+ -0.16,
727
+ -0.3
728
+ ],
729
+ rotation: [
730
+ 0,
731
+ 0,
732
+ -0.5
733
+ ]
734
+ },
735
+ {
736
+ t: 1.05,
737
+ position: [
738
+ 0.06,
739
+ -0.16,
740
+ -0.3
741
+ ],
742
+ rotation: [
743
+ 0,
744
+ 0,
745
+ 0
746
+ ]
747
+ },
748
+ {
749
+ t: 1.6,
750
+ position: [
751
+ 0,
752
+ 0.02,
753
+ -0.18
754
+ ],
755
+ rotation: [
756
+ -0.6,
757
+ 0,
758
+ 0
759
+ ],
760
+ action: "swallow"
761
+ },
762
+ {
763
+ t: 2,
764
+ position: [
765
+ 0,
766
+ 0.02,
767
+ -0.18
768
+ ],
769
+ rotation: [
770
+ -0.6,
771
+ 0,
772
+ 0
773
+ ]
774
+ },
775
+ {
776
+ t: 2.6,
777
+ position: [
778
+ 0.22,
779
+ -0.2,
780
+ -0.4
781
+ ],
782
+ rotation: [
783
+ 0,
784
+ 0,
785
+ 0
786
+ ]
787
+ }
788
+ ]
789
+ },
790
+ {
791
+ id: "apply_dressing",
792
+ body: "two_hands",
793
+ duration: 3.2,
794
+ note: "the dressing laid on the other forearm and wound round it twice",
795
+ keys: [
796
+ {
797
+ t: 0,
798
+ position: [
799
+ 0.22,
800
+ -0.2,
801
+ -0.4
802
+ ],
803
+ rotation: [
804
+ 0,
805
+ 0,
806
+ 0
807
+ ]
808
+ },
809
+ {
810
+ t: 0.5,
811
+ position: [
812
+ -0.06,
813
+ -0.12,
814
+ -0.3
815
+ ],
816
+ rotation: [
817
+ 0,
818
+ 0,
819
+ 1.2
820
+ ]
821
+ },
822
+ {
823
+ t: 1,
824
+ position: [
825
+ -0.1,
826
+ -0.15,
827
+ -0.28
828
+ ],
829
+ rotation: [
830
+ 0.4,
831
+ 0,
832
+ 1.4
833
+ ],
834
+ action: "apply"
835
+ },
836
+ {
837
+ t: 1.5,
838
+ position: [
839
+ -0.02,
840
+ -0.1,
841
+ -0.32
842
+ ],
843
+ rotation: [
844
+ 0,
845
+ 0,
846
+ 1.2
847
+ ]
848
+ },
849
+ {
850
+ t: 2,
851
+ position: [
852
+ -0.1,
853
+ -0.15,
854
+ -0.28
855
+ ],
856
+ rotation: [
857
+ 0.4,
858
+ 0,
859
+ 1.4
860
+ ],
861
+ action: "apply"
862
+ },
863
+ {
864
+ t: 2.6,
865
+ position: [
866
+ -0.06,
867
+ -0.12,
868
+ -0.3
869
+ ],
870
+ rotation: [
871
+ 0,
872
+ 0,
873
+ 1.2
874
+ ]
875
+ },
876
+ {
877
+ t: 3.2,
878
+ position: [
879
+ 0.22,
880
+ -0.2,
881
+ -0.4
882
+ ],
883
+ rotation: [
884
+ 0,
885
+ 0,
886
+ 0
887
+ ]
888
+ }
889
+ ]
890
+ },
891
+ {
892
+ id: "use_hygiene",
893
+ body: "two_hands",
894
+ duration: 3,
895
+ note: "soap (or what is rubbed in) between both hands in front of the body, rubbed side to side",
896
+ keys: [
897
+ {
898
+ t: 0,
899
+ position: [
900
+ 0.22,
901
+ -0.2,
902
+ -0.4
903
+ ],
904
+ rotation: [
905
+ 0,
906
+ 0,
907
+ 0
908
+ ]
909
+ },
910
+ {
911
+ t: 0.4,
912
+ position: [
913
+ 0.02,
914
+ -0.18,
915
+ -0.32
916
+ ],
917
+ rotation: [
918
+ 0,
919
+ 0,
920
+ 1.5
921
+ ]
922
+ },
923
+ {
924
+ t: 0.7,
925
+ position: [
926
+ -0.04,
927
+ -0.18,
928
+ -0.32
929
+ ],
930
+ rotation: [
931
+ 0,
932
+ 0,
933
+ 1.5
934
+ ],
935
+ action: "scrub"
936
+ },
937
+ {
938
+ t: 1,
939
+ position: [
940
+ 0.06,
941
+ -0.18,
942
+ -0.32
943
+ ],
944
+ rotation: [
945
+ 0,
946
+ 0,
947
+ 1.5
948
+ ]
949
+ },
950
+ {
951
+ t: 1.3,
952
+ position: [
953
+ -0.04,
954
+ -0.18,
955
+ -0.32
956
+ ],
957
+ rotation: [
958
+ 0,
959
+ 0,
960
+ 1.5
961
+ ],
962
+ action: "scrub"
963
+ },
964
+ {
965
+ t: 1.6,
966
+ position: [
967
+ 0.06,
968
+ -0.18,
969
+ -0.32
970
+ ],
971
+ rotation: [
972
+ 0,
973
+ 0,
974
+ 1.5
975
+ ]
976
+ },
977
+ {
978
+ t: 1.9,
979
+ position: [
980
+ -0.04,
981
+ -0.18,
982
+ -0.32
983
+ ],
984
+ rotation: [
985
+ 0,
986
+ 0,
987
+ 1.5
988
+ ],
989
+ action: "scrub"
990
+ },
991
+ {
992
+ t: 2.3,
993
+ position: [
994
+ 0.02,
995
+ -0.18,
996
+ -0.32
997
+ ],
998
+ rotation: [
999
+ 0,
1000
+ 0,
1001
+ 1.5
1002
+ ]
1003
+ },
1004
+ {
1005
+ t: 3,
1006
+ position: [
1007
+ 0.22,
1008
+ -0.2,
1009
+ -0.4
1010
+ ],
1011
+ rotation: [
1012
+ 0,
1013
+ 0,
1014
+ 0
1015
+ ]
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ id: "toggle_flashlight",
1021
+ body: "hand",
1022
+ duration: 1.1,
1023
+ note: "the flashlight raised before the chest and pointed ahead, the thumb pressing the tail switch (a small push), and back",
1024
+ keys: [
1025
+ {
1026
+ t: 0,
1027
+ position: [
1028
+ 0.22,
1029
+ -0.2,
1030
+ -0.4
1031
+ ],
1032
+ rotation: [
1033
+ 0,
1034
+ 0,
1035
+ 0
1036
+ ]
1037
+ },
1038
+ {
1039
+ t: 0.35,
1040
+ position: [
1041
+ 0.12,
1042
+ -0.12,
1043
+ -0.42
1044
+ ],
1045
+ rotation: [
1046
+ -1.45,
1047
+ 0,
1048
+ 0
1049
+ ]
1050
+ },
1051
+ {
1052
+ t: 0.47,
1053
+ position: [
1054
+ 0.12,
1055
+ -0.13,
1056
+ -0.42
1057
+ ],
1058
+ rotation: [
1059
+ -1.5,
1060
+ 0,
1061
+ 0
1062
+ ]
1063
+ },
1064
+ {
1065
+ t: 0.52,
1066
+ position: [
1067
+ 0.12,
1068
+ -0.125,
1069
+ -0.42
1070
+ ],
1071
+ rotation: [
1072
+ -1.47,
1073
+ 0,
1074
+ 0
1075
+ ],
1076
+ action: "switch"
1077
+ },
1078
+ {
1079
+ t: 0.7,
1080
+ position: [
1081
+ 0.12,
1082
+ -0.12,
1083
+ -0.42
1084
+ ],
1085
+ rotation: [
1086
+ -1.45,
1087
+ 0,
1088
+ 0
1089
+ ]
1090
+ },
1091
+ {
1092
+ t: 1.1,
1093
+ position: [
1094
+ 0.22,
1095
+ -0.2,
1096
+ -0.4
1097
+ ],
1098
+ rotation: [
1099
+ 0,
1100
+ 0,
1101
+ 0
1102
+ ]
1103
+ }
1104
+ ]
1105
+ },
1106
+ {
1107
+ id: "light_lighter",
1108
+ body: "hand",
1109
+ duration: 1.5,
1110
+ note: "the lighter brought before the chest, the thumb rolled down over the wheel (the lighter dips and tips with it), the flame catches and is held up a moment, and back",
1111
+ keys: [
1112
+ {
1113
+ t: 0,
1114
+ position: [
1115
+ 0.22,
1116
+ -0.2,
1117
+ -0.4
1118
+ ],
1119
+ rotation: [
1120
+ 0,
1121
+ 0,
1122
+ 0
1123
+ ]
1124
+ },
1125
+ {
1126
+ t: 0.4,
1127
+ position: [
1128
+ 0.07,
1129
+ -0.12,
1130
+ -0.34
1131
+ ],
1132
+ rotation: [
1133
+ 0,
1134
+ 0,
1135
+ 0
1136
+ ]
1137
+ },
1138
+ {
1139
+ t: 0.52,
1140
+ position: [
1141
+ 0.07,
1142
+ -0.137,
1143
+ -0.34
1144
+ ],
1145
+ rotation: [
1146
+ 0.14,
1147
+ 0,
1148
+ -0.12
1149
+ ]
1150
+ },
1151
+ {
1152
+ t: 0.58,
1153
+ position: [
1154
+ 0.07,
1155
+ -0.125,
1156
+ -0.34
1157
+ ],
1158
+ rotation: [
1159
+ 0,
1160
+ 0,
1161
+ 0
1162
+ ],
1163
+ action: "ignite"
1164
+ },
1165
+ {
1166
+ t: 1.15,
1167
+ position: [
1168
+ 0.07,
1169
+ -0.115,
1170
+ -0.34
1171
+ ],
1172
+ rotation: [
1173
+ 0,
1174
+ 0,
1175
+ 0
1176
+ ]
1177
+ },
1178
+ {
1179
+ t: 1.5,
1180
+ position: [
1181
+ 0.22,
1182
+ -0.2,
1183
+ -0.4
1184
+ ],
1185
+ rotation: [
1186
+ 0,
1187
+ 0,
1188
+ 0
1189
+ ]
1190
+ }
1191
+ ]
1192
+ },
1193
+ {
1194
+ id: "use_radio",
1195
+ body: "mouth",
1196
+ duration: 3,
1197
+ note: "the radio brought up beside the face, the thumb turning the knob (the radio twists a little with it), held at the mouth while talking, and back down",
1198
+ keys: [
1199
+ {
1200
+ t: 0,
1201
+ position: [
1202
+ 0.22,
1203
+ -0.2,
1204
+ -0.4
1205
+ ],
1206
+ rotation: [
1207
+ 0,
1208
+ 0,
1209
+ 0
1210
+ ]
1211
+ },
1212
+ {
1213
+ t: 0.5,
1214
+ position: [
1215
+ 0.08,
1216
+ -0.05,
1217
+ -0.22
1218
+ ],
1219
+ rotation: [
1220
+ 0,
1221
+ 0,
1222
+ 0.15
1223
+ ]
1224
+ },
1225
+ {
1226
+ t: 0.85,
1227
+ position: [
1228
+ 0.08,
1229
+ -0.05,
1230
+ -0.22
1231
+ ],
1232
+ rotation: [
1233
+ 0,
1234
+ 0,
1235
+ 0.15
1236
+ ]
1237
+ },
1238
+ {
1239
+ t: 1.05,
1240
+ position: [
1241
+ 0.08,
1242
+ -0.05,
1243
+ -0.22
1244
+ ],
1245
+ rotation: [
1246
+ 0,
1247
+ 0.3,
1248
+ 0.15
1249
+ ],
1250
+ action: "tune"
1251
+ },
1252
+ {
1253
+ t: 1.25,
1254
+ position: [
1255
+ 0.08,
1256
+ -0.05,
1257
+ -0.22
1258
+ ],
1259
+ rotation: [
1260
+ 0,
1261
+ 0,
1262
+ 0.15
1263
+ ]
1264
+ },
1265
+ {
1266
+ t: 1.45,
1267
+ position: [
1268
+ 0.05,
1269
+ -0.02,
1270
+ -0.19
1271
+ ],
1272
+ rotation: [
1273
+ -0.1,
1274
+ 0,
1275
+ 0.15
1276
+ ],
1277
+ action: "talk"
1278
+ },
1279
+ {
1280
+ t: 2.4,
1281
+ position: [
1282
+ 0.05,
1283
+ -0.02,
1284
+ -0.19
1285
+ ],
1286
+ rotation: [
1287
+ -0.1,
1288
+ 0,
1289
+ 0.15
1290
+ ]
1291
+ },
1292
+ {
1293
+ t: 3,
1294
+ position: [
1295
+ 0.22,
1296
+ -0.2,
1297
+ -0.4
1298
+ ],
1299
+ rotation: [
1300
+ 0,
1301
+ 0,
1302
+ 0
1303
+ ]
1304
+ }
1305
+ ]
1306
+ },
1307
+ {
1308
+ id: "turn_key",
1309
+ body: "reach",
1310
+ duration: 1.9,
1311
+ note: "the key carried out at arm's length and pointed into the lock (the keys marked reach go to the lock the host aims them at, or stay in the air before the chest), turned about itself a quarter and more, turned back, drawn out",
1312
+ keys: [
1313
+ {
1314
+ t: 0,
1315
+ position: [
1316
+ 0.22,
1317
+ -0.2,
1318
+ -0.4
1319
+ ],
1320
+ rotation: [
1321
+ 0,
1322
+ 0,
1323
+ 0
1324
+ ]
1325
+ },
1326
+ {
1327
+ t: 0.5,
1328
+ position: [
1329
+ 0.1,
1330
+ -0.15,
1331
+ -0.55
1332
+ ],
1333
+ rotation: [
1334
+ 0,
1335
+ 1.524,
1336
+ 0
1337
+ ],
1338
+ reach: true
1339
+ },
1340
+ {
1341
+ t: 0.75,
1342
+ position: [
1343
+ 0.1,
1344
+ -0.15,
1345
+ -0.57
1346
+ ],
1347
+ rotation: [
1348
+ 0,
1349
+ 1.524,
1350
+ 0
1351
+ ],
1352
+ reach: true
1353
+ },
1354
+ {
1355
+ t: 0.84,
1356
+ position: [
1357
+ 0.1,
1358
+ -0.15,
1359
+ -0.57
1360
+ ],
1361
+ rotation: [
1362
+ -1.46,
1363
+ 1.168,
1364
+ 1.45
1365
+ ],
1366
+ reach: true
1367
+ },
1368
+ {
1369
+ t: 0.93,
1370
+ position: [
1371
+ 0.1,
1372
+ -0.15,
1373
+ -0.57
1374
+ ],
1375
+ rotation: [
1376
+ -1.525,
1377
+ 0.77,
1378
+ 1.505
1379
+ ],
1380
+ reach: true
1381
+ },
1382
+ {
1383
+ t: 1.01,
1384
+ position: [
1385
+ 0.1,
1386
+ -0.15,
1387
+ -0.57
1388
+ ],
1389
+ rotation: [
1390
+ -1.552,
1391
+ 0.37,
1392
+ 1.52
1393
+ ],
1394
+ reach: true
1395
+ },
1396
+ {
1397
+ t: 1.1,
1398
+ position: [
1399
+ 0.1,
1400
+ -0.15,
1401
+ -0.57
1402
+ ],
1403
+ rotation: [
1404
+ -1.572,
1405
+ -0.029,
1406
+ 1.524
1407
+ ],
1408
+ action: "turn",
1409
+ reach: true
1410
+ },
1411
+ {
1412
+ t: 1.19,
1413
+ position: [
1414
+ 0.1,
1415
+ -0.15,
1416
+ -0.57
1417
+ ],
1418
+ rotation: [
1419
+ -1.552,
1420
+ 0.37,
1421
+ 1.52
1422
+ ],
1423
+ reach: true
1424
+ },
1425
+ {
1426
+ t: 1.27,
1427
+ position: [
1428
+ 0.1,
1429
+ -0.15,
1430
+ -0.57
1431
+ ],
1432
+ rotation: [
1433
+ -1.525,
1434
+ 0.77,
1435
+ 1.505
1436
+ ],
1437
+ reach: true
1438
+ },
1439
+ {
1440
+ t: 1.34,
1441
+ position: [
1442
+ 0.1,
1443
+ -0.15,
1444
+ -0.57
1445
+ ],
1446
+ rotation: [
1447
+ -1.46,
1448
+ 1.168,
1449
+ 1.45
1450
+ ],
1451
+ reach: true
1452
+ },
1453
+ {
1454
+ t: 1.4,
1455
+ position: [
1456
+ 0.1,
1457
+ -0.15,
1458
+ -0.57
1459
+ ],
1460
+ rotation: [
1461
+ 0,
1462
+ 1.524,
1463
+ 0
1464
+ ],
1465
+ reach: true
1466
+ },
1467
+ {
1468
+ t: 1.55,
1469
+ position: [
1470
+ 0.1,
1471
+ -0.15,
1472
+ -0.55
1473
+ ],
1474
+ rotation: [
1475
+ 0,
1476
+ 1.524,
1477
+ 0
1478
+ ],
1479
+ reach: true
1480
+ },
1481
+ {
1482
+ t: 1.9,
1483
+ position: [
1484
+ 0.22,
1485
+ -0.2,
1486
+ -0.4
1487
+ ],
1488
+ rotation: [
1489
+ 0,
1490
+ 0,
1491
+ 0
1492
+ ]
1493
+ }
1494
+ ]
1495
+ },
1496
+ {
1497
+ id: "wash_dishes",
1498
+ body: "two_hands",
1499
+ duration: 3,
1500
+ note: "both hands low in front at the height of a sink basin, the dish tipped toward the body and scrubbed in small circles, three rounds, and back; the scrubbing keys reach under the tap (aimHandUse)",
1501
+ keys: [
1502
+ {
1503
+ t: 0,
1504
+ position: [
1505
+ 0.22,
1506
+ -0.2,
1507
+ -0.4
1508
+ ],
1509
+ rotation: [
1510
+ 0,
1511
+ 0,
1512
+ 0
1513
+ ]
1514
+ },
1515
+ {
1516
+ t: 0.4,
1517
+ position: [
1518
+ 0,
1519
+ -0.55,
1520
+ -0.45
1521
+ ],
1522
+ rotation: [
1523
+ -0.5,
1524
+ 0,
1525
+ 0
1526
+ ],
1527
+ reach: true
1528
+ },
1529
+ {
1530
+ t: 0.7,
1531
+ position: [
1532
+ 0.04,
1533
+ -0.55,
1534
+ -0.41
1535
+ ],
1536
+ rotation: [
1537
+ -0.5,
1538
+ 0,
1539
+ 0
1540
+ ],
1541
+ action: "scrub",
1542
+ reach: true
1543
+ },
1544
+ {
1545
+ t: 0.95,
1546
+ position: [
1547
+ 0,
1548
+ -0.55,
1549
+ -0.37
1550
+ ],
1551
+ rotation: [
1552
+ -0.5,
1553
+ 0,
1554
+ 0
1555
+ ],
1556
+ reach: true
1557
+ },
1558
+ {
1559
+ t: 1.2,
1560
+ position: [
1561
+ -0.04,
1562
+ -0.55,
1563
+ -0.41
1564
+ ],
1565
+ rotation: [
1566
+ -0.5,
1567
+ 0,
1568
+ 0
1569
+ ],
1570
+ reach: true
1571
+ },
1572
+ {
1573
+ t: 1.45,
1574
+ position: [
1575
+ 0,
1576
+ -0.55,
1577
+ -0.45
1578
+ ],
1579
+ rotation: [
1580
+ -0.5,
1581
+ 0,
1582
+ 0
1583
+ ],
1584
+ action: "scrub",
1585
+ reach: true
1586
+ },
1587
+ {
1588
+ t: 1.7,
1589
+ position: [
1590
+ 0.04,
1591
+ -0.55,
1592
+ -0.41
1593
+ ],
1594
+ rotation: [
1595
+ -0.5,
1596
+ 0,
1597
+ 0
1598
+ ],
1599
+ reach: true
1600
+ },
1601
+ {
1602
+ t: 1.95,
1603
+ position: [
1604
+ 0,
1605
+ -0.55,
1606
+ -0.37
1607
+ ],
1608
+ rotation: [
1609
+ -0.5,
1610
+ 0,
1611
+ 0
1612
+ ],
1613
+ reach: true
1614
+ },
1615
+ {
1616
+ t: 2.2,
1617
+ position: [
1618
+ -0.04,
1619
+ -0.55,
1620
+ -0.41
1621
+ ],
1622
+ rotation: [
1623
+ -0.5,
1624
+ 0,
1625
+ 0
1626
+ ],
1627
+ action: "scrub",
1628
+ reach: true
1629
+ },
1630
+ {
1631
+ t: 2.5,
1632
+ position: [
1633
+ 0,
1634
+ -0.55,
1635
+ -0.45
1636
+ ],
1637
+ rotation: [
1638
+ -0.5,
1639
+ 0,
1640
+ 0
1641
+ ],
1642
+ reach: true
1643
+ },
1644
+ {
1645
+ t: 3,
1646
+ position: [
1647
+ 0.22,
1648
+ -0.2,
1649
+ -0.4
1650
+ ],
1651
+ rotation: [
1652
+ 0,
1653
+ 0,
1654
+ 0
1655
+ ]
1656
+ }
1657
+ ]
1658
+ },
1659
+ {
1660
+ id: "fill_cup",
1661
+ body: "hand",
1662
+ duration: 2.5,
1663
+ note: "the cup held upright, forward and low under where the tap runs, kept still while it fills, then brought back up; the keys under the tap reach where the stream is (aimHandUse)",
1664
+ keys: [
1665
+ {
1666
+ t: 0,
1667
+ position: [
1668
+ 0.22,
1669
+ -0.2,
1670
+ -0.4
1671
+ ],
1672
+ rotation: [
1673
+ 0,
1674
+ 0,
1675
+ 0
1676
+ ]
1677
+ },
1678
+ {
1679
+ t: 0.5,
1680
+ position: [
1681
+ 0.05,
1682
+ -0.55,
1683
+ -0.45
1684
+ ],
1685
+ rotation: [
1686
+ 0,
1687
+ 0,
1688
+ 0
1689
+ ],
1690
+ reach: true
1691
+ },
1692
+ {
1693
+ t: 0.7,
1694
+ position: [
1695
+ 0.05,
1696
+ -0.55,
1697
+ -0.45
1698
+ ],
1699
+ rotation: [
1700
+ 0,
1701
+ 0,
1702
+ 0
1703
+ ],
1704
+ action: "apply",
1705
+ reach: true
1706
+ },
1707
+ {
1708
+ t: 1.8,
1709
+ position: [
1710
+ 0.05,
1711
+ -0.55,
1712
+ -0.45
1713
+ ],
1714
+ rotation: [
1715
+ 0,
1716
+ 0,
1717
+ 0
1718
+ ],
1719
+ reach: true
1720
+ },
1721
+ {
1722
+ t: 2.1,
1723
+ position: [
1724
+ 0.15,
1725
+ -0.32,
1726
+ -0.42
1727
+ ],
1728
+ rotation: [
1729
+ 0,
1730
+ 0,
1731
+ 0
1732
+ ]
1733
+ },
1734
+ {
1735
+ t: 2.5,
1736
+ position: [
1737
+ 0.22,
1738
+ -0.2,
1739
+ -0.4
1740
+ ],
1741
+ rotation: [
1742
+ 0,
1743
+ 0,
1744
+ 0
1745
+ ]
1746
+ }
1747
+ ]
1748
+ },
1749
+ {
1750
+ id: "drink_cupped_hands",
1751
+ body: "two_hands",
1752
+ duration: 5,
1753
+ note: "bent over the sink: both hands cupped under the running tap, the water caught in them lifted to the mouth and drunk, three handfuls, and back; the cupped hands reach under the stream (aimHandUse) and come up to the mouth",
1754
+ keys: [
1755
+ {
1756
+ t: 0,
1757
+ position: [
1758
+ 0.22,
1759
+ -0.2,
1760
+ -0.4
1761
+ ],
1762
+ rotation: [
1763
+ 0,
1764
+ 0,
1765
+ 0
1766
+ ]
1767
+ },
1768
+ {
1769
+ t: 0.5,
1770
+ position: [
1771
+ 0,
1772
+ -0.55,
1773
+ -0.42
1774
+ ],
1775
+ rotation: [
1776
+ -0.3,
1777
+ 0,
1778
+ 0
1779
+ ],
1780
+ reach: true
1781
+ },
1782
+ {
1783
+ t: 1,
1784
+ position: [
1785
+ 0,
1786
+ -0.55,
1787
+ -0.42
1788
+ ],
1789
+ rotation: [
1790
+ -0.3,
1791
+ 0,
1792
+ 0
1793
+ ],
1794
+ reach: true
1795
+ },
1796
+ {
1797
+ t: 1.45,
1798
+ position: [
1799
+ 0,
1800
+ 0,
1801
+ -0.22
1802
+ ],
1803
+ rotation: [
1804
+ -0.9,
1805
+ 0,
1806
+ 0
1807
+ ],
1808
+ action: "swallow"
1809
+ },
1810
+ {
1811
+ t: 1.7,
1812
+ position: [
1813
+ 0,
1814
+ 0,
1815
+ -0.22
1816
+ ],
1817
+ rotation: [
1818
+ -0.9,
1819
+ 0,
1820
+ 0
1821
+ ]
1822
+ },
1823
+ {
1824
+ t: 1.9,
1825
+ position: [
1826
+ 0,
1827
+ -0.55,
1828
+ -0.42
1829
+ ],
1830
+ rotation: [
1831
+ -0.3,
1832
+ 0,
1833
+ 0
1834
+ ],
1835
+ reach: true
1836
+ },
1837
+ {
1838
+ t: 2.4,
1839
+ position: [
1840
+ 0,
1841
+ -0.55,
1842
+ -0.42
1843
+ ],
1844
+ rotation: [
1845
+ -0.3,
1846
+ 0,
1847
+ 0
1848
+ ],
1849
+ reach: true
1850
+ },
1851
+ {
1852
+ t: 2.85,
1853
+ position: [
1854
+ 0,
1855
+ 0,
1856
+ -0.22
1857
+ ],
1858
+ rotation: [
1859
+ -0.9,
1860
+ 0,
1861
+ 0
1862
+ ],
1863
+ action: "swallow"
1864
+ },
1865
+ {
1866
+ t: 3.1,
1867
+ position: [
1868
+ 0,
1869
+ 0,
1870
+ -0.22
1871
+ ],
1872
+ rotation: [
1873
+ -0.9,
1874
+ 0,
1875
+ 0
1876
+ ]
1877
+ },
1878
+ {
1879
+ t: 3.3,
1880
+ position: [
1881
+ 0,
1882
+ -0.55,
1883
+ -0.42
1884
+ ],
1885
+ rotation: [
1886
+ -0.3,
1887
+ 0,
1888
+ 0
1889
+ ],
1890
+ reach: true
1891
+ },
1892
+ {
1893
+ t: 3.8,
1894
+ position: [
1895
+ 0,
1896
+ -0.55,
1897
+ -0.42
1898
+ ],
1899
+ rotation: [
1900
+ -0.3,
1901
+ 0,
1902
+ 0
1903
+ ],
1904
+ reach: true
1905
+ },
1906
+ {
1907
+ t: 4.25,
1908
+ position: [
1909
+ 0,
1910
+ 0,
1911
+ -0.22
1912
+ ],
1913
+ rotation: [
1914
+ -0.9,
1915
+ 0,
1916
+ 0
1917
+ ],
1918
+ action: "swallow"
1919
+ },
1920
+ {
1921
+ t: 4.5,
1922
+ position: [
1923
+ 0,
1924
+ 0,
1925
+ -0.22
1926
+ ],
1927
+ rotation: [
1928
+ -0.9,
1929
+ 0,
1930
+ 0
1931
+ ]
1932
+ },
1933
+ {
1934
+ t: 5,
1935
+ position: [
1936
+ 0.22,
1937
+ -0.2,
1938
+ -0.4
1939
+ ],
1940
+ rotation: [
1941
+ 0,
1942
+ 0,
1943
+ 0
1944
+ ]
1945
+ }
1946
+ ]
1947
+ },
1948
+ {
1949
+ id: "lather_body",
1950
+ body: "body",
1951
+ duration: 6.4,
1952
+ note: "bar soap rubbed between wet hands, then over the other forearm, the chest and the belly; foam left on each",
1953
+ keys: [
1954
+ {
1955
+ t: 0,
1956
+ position: [
1957
+ 0.22,
1958
+ -0.2,
1959
+ -0.4
1960
+ ],
1961
+ rotation: [
1962
+ 0,
1963
+ 0,
1964
+ 0
1965
+ ]
1966
+ },
1967
+ {
1968
+ t: 0.4,
1969
+ position: [
1970
+ 0.02,
1971
+ -0.22,
1972
+ -0.32
1973
+ ],
1974
+ rotation: [
1975
+ 0,
1976
+ 0,
1977
+ 1.5
1978
+ ]
1979
+ },
1980
+ {
1981
+ t: 0.7,
1982
+ position: [
1983
+ -0.04,
1984
+ -0.22,
1985
+ -0.32
1986
+ ],
1987
+ rotation: [
1988
+ 0,
1989
+ 0,
1990
+ 1.5
1991
+ ],
1992
+ action: "dose"
1993
+ },
1994
+ {
1995
+ t: 1,
1996
+ position: [
1997
+ 0.05,
1998
+ -0.22,
1999
+ -0.32
2000
+ ],
2001
+ rotation: [
2002
+ 0,
2003
+ 0,
2004
+ 1.5
2005
+ ],
2006
+ action: "lather",
2007
+ surface: "hands"
2008
+ },
2009
+ {
2010
+ t: 1.3,
2011
+ position: [
2012
+ -0.04,
2013
+ -0.22,
2014
+ -0.32
2015
+ ],
2016
+ rotation: [
2017
+ 0,
2018
+ 0,
2019
+ 1.5
2020
+ ]
2021
+ },
2022
+ {
2023
+ t: 1.75,
2024
+ position: [
2025
+ -0.2,
2026
+ -0.3,
2027
+ -0.3
2028
+ ],
2029
+ rotation: [
2030
+ 0,
2031
+ 0,
2032
+ 1.2
2033
+ ]
2034
+ },
2035
+ {
2036
+ t: 2.2,
2037
+ position: [
2038
+ -0.24,
2039
+ -0.2,
2040
+ -0.26
2041
+ ],
2042
+ rotation: [
2043
+ 0,
2044
+ 0,
2045
+ 1.2
2046
+ ],
2047
+ action: "lather",
2048
+ surface: "arms"
2049
+ },
2050
+ {
2051
+ t: 2.65,
2052
+ position: [
2053
+ -0.2,
2054
+ -0.3,
2055
+ -0.3
2056
+ ],
2057
+ rotation: [
2058
+ 0,
2059
+ 0,
2060
+ 1.2
2061
+ ]
2062
+ },
2063
+ {
2064
+ t: 3.1,
2065
+ position: [
2066
+ -0.24,
2067
+ -0.2,
2068
+ -0.26
2069
+ ],
2070
+ rotation: [
2071
+ 0,
2072
+ 0,
2073
+ 1.2
2074
+ ],
2075
+ action: "lather",
2076
+ surface: "arms"
2077
+ },
2078
+ {
2079
+ t: 3.55,
2080
+ position: [
2081
+ 0,
2082
+ -0.32,
2083
+ -0.24
2084
+ ],
2085
+ rotation: [
2086
+ 0,
2087
+ 0,
2088
+ 1.5
2089
+ ]
2090
+ },
2091
+ {
2092
+ t: 4,
2093
+ position: [
2094
+ -0.08,
2095
+ -0.34,
2096
+ -0.24
2097
+ ],
2098
+ rotation: [
2099
+ 0,
2100
+ 0,
2101
+ 1.5
2102
+ ],
2103
+ action: "lather",
2104
+ surface: "torso"
2105
+ },
2106
+ {
2107
+ t: 4.45,
2108
+ position: [
2109
+ 0.06,
2110
+ -0.32,
2111
+ -0.24
2112
+ ],
2113
+ rotation: [
2114
+ 0,
2115
+ 0,
2116
+ 1.5
2117
+ ]
2118
+ },
2119
+ {
2120
+ t: 4.9,
2121
+ position: [
2122
+ 0,
2123
+ -0.5,
2124
+ -0.26
2125
+ ],
2126
+ rotation: [
2127
+ 0,
2128
+ 0,
2129
+ 1.5
2130
+ ]
2131
+ },
2132
+ {
2133
+ t: 5.35,
2134
+ position: [
2135
+ -0.08,
2136
+ -0.52,
2137
+ -0.26
2138
+ ],
2139
+ rotation: [
2140
+ 0,
2141
+ 0,
2142
+ 1.5
2143
+ ],
2144
+ action: "lather",
2145
+ surface: "torso"
2146
+ },
2147
+ {
2148
+ t: 5.8,
2149
+ position: [
2150
+ 0.06,
2151
+ -0.5,
2152
+ -0.26
2153
+ ],
2154
+ rotation: [
2155
+ 0,
2156
+ 0,
2157
+ 1.5
2158
+ ]
2159
+ },
2160
+ {
2161
+ t: 6.4,
2162
+ position: [
2163
+ 0.22,
2164
+ -0.2,
2165
+ -0.4
2166
+ ],
2167
+ rotation: [
2168
+ 0,
2169
+ 0,
2170
+ 0
2171
+ ]
2172
+ }
2173
+ ]
2174
+ },
2175
+ {
2176
+ id: "shampoo_hair",
2177
+ body: "scalp",
2178
+ duration: 4.5,
2179
+ 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",
2180
+ keys: [
2181
+ {
2182
+ t: 0,
2183
+ position: [
2184
+ 0.22,
2185
+ -0.2,
2186
+ -0.4
2187
+ ],
2188
+ rotation: [
2189
+ 0,
2190
+ 0,
2191
+ 0
2192
+ ]
2193
+ },
2194
+ {
2195
+ t: 0.45,
2196
+ position: [
2197
+ 0.02,
2198
+ -0.16,
2199
+ -0.32
2200
+ ],
2201
+ rotation: [
2202
+ -2.4,
2203
+ 0,
2204
+ 0
2205
+ ]
2206
+ },
2207
+ {
2208
+ t: 0.8,
2209
+ position: [
2210
+ 0.02,
2211
+ -0.16,
2212
+ -0.32
2213
+ ],
2214
+ rotation: [
2215
+ -2.6,
2216
+ 0,
2217
+ 0
2218
+ ],
2219
+ action: "dose"
2220
+ },
2221
+ {
2222
+ t: 1.2,
2223
+ position: [
2224
+ 0.02,
2225
+ -0.2,
2226
+ -0.34
2227
+ ],
2228
+ rotation: [
2229
+ 0,
2230
+ 0,
2231
+ 0
2232
+ ]
2233
+ },
2234
+ {
2235
+ t: 1.65,
2236
+ position: [
2237
+ -0.05,
2238
+ 0.1,
2239
+ -0.06
2240
+ ],
2241
+ rotation: [
2242
+ 0,
2243
+ 0,
2244
+ 1.2
2245
+ ]
2246
+ },
2247
+ {
2248
+ t: 2.1,
2249
+ position: [
2250
+ 0.05,
2251
+ 0.1,
2252
+ -0.06
2253
+ ],
2254
+ rotation: [
2255
+ 0,
2256
+ 0,
2257
+ 1.2
2258
+ ],
2259
+ action: "lather",
2260
+ surface: "hair"
2261
+ },
2262
+ {
2263
+ t: 2.55,
2264
+ position: [
2265
+ -0.05,
2266
+ 0.1,
2267
+ -0.06
2268
+ ],
2269
+ rotation: [
2270
+ 0,
2271
+ 0,
2272
+ 1.2
2273
+ ]
2274
+ },
2275
+ {
2276
+ t: 3,
2277
+ position: [
2278
+ 0.05,
2279
+ 0.1,
2280
+ -0.06
2281
+ ],
2282
+ rotation: [
2283
+ 0,
2284
+ 0,
2285
+ 1.2
2286
+ ],
2287
+ action: "lather",
2288
+ surface: "hair"
2289
+ },
2290
+ {
2291
+ t: 3.45,
2292
+ position: [
2293
+ -0.05,
2294
+ 0.1,
2295
+ -0.06
2296
+ ],
2297
+ rotation: [
2298
+ 0,
2299
+ 0,
2300
+ 1.2
2301
+ ]
2302
+ },
2303
+ {
2304
+ t: 3.9,
2305
+ position: [
2306
+ 0.05,
2307
+ 0.1,
2308
+ -0.06
2309
+ ],
2310
+ rotation: [
2311
+ 0,
2312
+ 0,
2313
+ 1.2
2314
+ ],
2315
+ action: "lather",
2316
+ surface: "hair"
2317
+ },
2318
+ {
2319
+ t: 4.5,
2320
+ position: [
2321
+ 0.22,
2322
+ -0.2,
2323
+ -0.4
2324
+ ],
2325
+ rotation: [
2326
+ 0,
2327
+ 0,
2328
+ 0
2329
+ ]
2330
+ }
2331
+ ]
2332
+ },
2333
+ {
2334
+ id: "brush_teeth",
2335
+ body: "mouth",
2336
+ duration: 5.9,
2337
+ 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",
2338
+ keys: [
2339
+ {
2340
+ t: 0,
2341
+ position: [
2342
+ 0.22,
2343
+ -0.2,
2344
+ -0.4
2345
+ ],
2346
+ rotation: [
2347
+ 0,
2348
+ 0,
2349
+ 0
2350
+ ]
2351
+ },
2352
+ {
2353
+ t: 0.5,
2354
+ position: [
2355
+ 0.04,
2356
+ -0.2,
2357
+ -0.34
2358
+ ],
2359
+ rotation: [
2360
+ 0,
2361
+ 0,
2362
+ 1.5
2363
+ ]
2364
+ },
2365
+ {
2366
+ t: 0.9,
2367
+ position: [
2368
+ 0.04,
2369
+ -0.2,
2370
+ -0.34
2371
+ ],
2372
+ rotation: [
2373
+ 0,
2374
+ 0,
2375
+ 1.5
2376
+ ],
2377
+ action: "dose"
2378
+ },
2379
+ {
2380
+ t: 1.4,
2381
+ position: [
2382
+ 0.02,
2383
+ -0.06,
2384
+ -0.17
2385
+ ],
2386
+ rotation: [
2387
+ 0,
2388
+ 0,
2389
+ 1.5
2390
+ ]
2391
+ },
2392
+ {
2393
+ t: 1.7,
2394
+ position: [
2395
+ 0,
2396
+ -0.06,
2397
+ -0.17
2398
+ ],
2399
+ rotation: [
2400
+ 0,
2401
+ 0,
2402
+ 1.5
2403
+ ]
2404
+ },
2405
+ {
2406
+ t: 2,
2407
+ position: [
2408
+ 0.04,
2409
+ -0.06,
2410
+ -0.17
2411
+ ],
2412
+ rotation: [
2413
+ 0,
2414
+ 0,
2415
+ 1.5
2416
+ ],
2417
+ action: "lather",
2418
+ surface: "mouth"
2419
+ },
2420
+ {
2421
+ t: 2.3,
2422
+ position: [
2423
+ 0,
2424
+ -0.06,
2425
+ -0.17
2426
+ ],
2427
+ rotation: [
2428
+ 0,
2429
+ 0,
2430
+ 1.5
2431
+ ]
2432
+ },
2433
+ {
2434
+ t: 2.6,
2435
+ position: [
2436
+ 0.04,
2437
+ -0.06,
2438
+ -0.17
2439
+ ],
2440
+ rotation: [
2441
+ 0,
2442
+ 0,
2443
+ 1.5
2444
+ ],
2445
+ action: "lather",
2446
+ surface: "mouth"
2447
+ },
2448
+ {
2449
+ t: 2.9,
2450
+ position: [
2451
+ 0,
2452
+ -0.06,
2453
+ -0.17
2454
+ ],
2455
+ rotation: [
2456
+ 0,
2457
+ 0,
2458
+ 1.5
2459
+ ]
2460
+ },
2461
+ {
2462
+ t: 3.2,
2463
+ position: [
2464
+ 0.04,
2465
+ -0.06,
2466
+ -0.17
2467
+ ],
2468
+ rotation: [
2469
+ 0,
2470
+ 0,
2471
+ 1.5
2472
+ ],
2473
+ action: "lather",
2474
+ surface: "mouth"
2475
+ },
2476
+ {
2477
+ t: 3.5,
2478
+ position: [
2479
+ 0,
2480
+ -0.06,
2481
+ -0.17
2482
+ ],
2483
+ rotation: [
2484
+ 0,
2485
+ 0,
2486
+ 1.5
2487
+ ]
2488
+ },
2489
+ {
2490
+ t: 3.8,
2491
+ position: [
2492
+ 0.04,
2493
+ -0.06,
2494
+ -0.17
2495
+ ],
2496
+ rotation: [
2497
+ 0,
2498
+ 0,
2499
+ 1.5
2500
+ ],
2501
+ action: "lather",
2502
+ surface: "mouth"
2503
+ },
2504
+ {
2505
+ t: 4.2,
2506
+ position: [
2507
+ 0.02,
2508
+ -0.06,
2509
+ -0.2
2510
+ ],
2511
+ rotation: [
2512
+ 0,
2513
+ 0,
2514
+ 1.5
2515
+ ],
2516
+ action: "spit",
2517
+ surface: "mouth"
2518
+ },
2519
+ {
2520
+ t: 4.7,
2521
+ position: [
2522
+ 0.04,
2523
+ -0.34,
2524
+ -0.44
2525
+ ],
2526
+ rotation: [
2527
+ 0,
2528
+ 0,
2529
+ 1.5
2530
+ ]
2531
+ },
2532
+ {
2533
+ t: 5.3,
2534
+ position: [
2535
+ 0.04,
2536
+ -0.34,
2537
+ -0.44
2538
+ ],
2539
+ rotation: [
2540
+ 0,
2541
+ 0,
2542
+ 1.5
2543
+ ],
2544
+ action: "rinse",
2545
+ surface: "brush"
2546
+ },
2547
+ {
2548
+ t: 5.9,
2549
+ position: [
2550
+ 0.22,
2551
+ -0.2,
2552
+ -0.4
2553
+ ],
2554
+ rotation: [
2555
+ 0,
2556
+ 0,
2557
+ 0
2558
+ ]
2559
+ }
2560
+ ]
2561
+ },
2562
+ {
2563
+ id: "wash_hands",
2564
+ body: "two_hands",
2565
+ duration: 6.5,
2566
+ note: "hands wet under the tap, the bar rubbed between them into foam, rinsed under the water and shaken dry",
2567
+ keys: [
2568
+ {
2569
+ t: 0,
2570
+ position: [
2571
+ 0.22,
2572
+ -0.2,
2573
+ -0.4
2574
+ ],
2575
+ rotation: [
2576
+ 0,
2577
+ 0,
2578
+ 0
2579
+ ]
2580
+ },
2581
+ {
2582
+ t: 0.5,
2583
+ position: [
2584
+ 0,
2585
+ -0.34,
2586
+ -0.44
2587
+ ],
2588
+ rotation: [
2589
+ 0,
2590
+ 0,
2591
+ 1.5
2592
+ ]
2593
+ },
2594
+ {
2595
+ t: 1,
2596
+ position: [
2597
+ 0,
2598
+ -0.34,
2599
+ -0.44
2600
+ ],
2601
+ rotation: [
2602
+ 0,
2603
+ 0,
2604
+ 1.5
2605
+ ],
2606
+ action: "rinse",
2607
+ surface: "hands"
2608
+ },
2609
+ {
2610
+ t: 1.4,
2611
+ position: [
2612
+ 0.02,
2613
+ -0.26,
2614
+ -0.36
2615
+ ],
2616
+ rotation: [
2617
+ 0,
2618
+ 0,
2619
+ 1.5
2620
+ ],
2621
+ action: "dose"
2622
+ },
2623
+ {
2624
+ t: 1.7,
2625
+ position: [
2626
+ -0.04,
2627
+ -0.26,
2628
+ -0.36
2629
+ ],
2630
+ rotation: [
2631
+ 0,
2632
+ 0,
2633
+ 1.5
2634
+ ]
2635
+ },
2636
+ {
2637
+ t: 2,
2638
+ position: [
2639
+ 0.06,
2640
+ -0.26,
2641
+ -0.36
2642
+ ],
2643
+ rotation: [
2644
+ 0,
2645
+ 0,
2646
+ 1.5
2647
+ ],
2648
+ action: "lather",
2649
+ surface: "hands"
2650
+ },
2651
+ {
2652
+ t: 2.3,
2653
+ position: [
2654
+ -0.04,
2655
+ -0.26,
2656
+ -0.36
2657
+ ],
2658
+ rotation: [
2659
+ 0,
2660
+ 0,
2661
+ 1.5
2662
+ ]
2663
+ },
2664
+ {
2665
+ t: 2.6,
2666
+ position: [
2667
+ 0.06,
2668
+ -0.26,
2669
+ -0.36
2670
+ ],
2671
+ rotation: [
2672
+ 0,
2673
+ 0,
2674
+ 1.5
2675
+ ],
2676
+ action: "lather",
2677
+ surface: "hands"
2678
+ },
2679
+ {
2680
+ t: 2.9,
2681
+ position: [
2682
+ -0.04,
2683
+ -0.26,
2684
+ -0.36
2685
+ ],
2686
+ rotation: [
2687
+ 0,
2688
+ 0,
2689
+ 1.5
2690
+ ]
2691
+ },
2692
+ {
2693
+ t: 3.2,
2694
+ position: [
2695
+ 0.06,
2696
+ -0.26,
2697
+ -0.36
2698
+ ],
2699
+ rotation: [
2700
+ 0,
2701
+ 0,
2702
+ 1.5
2703
+ ],
2704
+ action: "lather",
2705
+ surface: "hands"
2706
+ },
2707
+ {
2708
+ t: 3.7,
2709
+ position: [
2710
+ 0,
2711
+ -0.34,
2712
+ -0.44
2713
+ ],
2714
+ rotation: [
2715
+ 0,
2716
+ 0,
2717
+ 1.5
2718
+ ]
2719
+ },
2720
+ {
2721
+ t: 4.6,
2722
+ position: [
2723
+ 0.04,
2724
+ -0.34,
2725
+ -0.44
2726
+ ],
2727
+ rotation: [
2728
+ 0,
2729
+ 0,
2730
+ 1.5
2731
+ ],
2732
+ action: "rinse",
2733
+ surface: "hands"
2734
+ },
2735
+ {
2736
+ t: 5.1,
2737
+ position: [
2738
+ 0.04,
2739
+ -0.24,
2740
+ -0.36
2741
+ ],
2742
+ rotation: [
2743
+ 0,
2744
+ 0,
2745
+ 1.5
2746
+ ]
2747
+ },
2748
+ {
2749
+ t: 5.5,
2750
+ position: [
2751
+ -0.02,
2752
+ -0.24,
2753
+ -0.36
2754
+ ],
2755
+ rotation: [
2756
+ 0,
2757
+ 0,
2758
+ 1.5
2759
+ ],
2760
+ action: "dry",
2761
+ surface: "hands"
2762
+ },
2763
+ {
2764
+ t: 5.9,
2765
+ position: [
2766
+ 0.04,
2767
+ -0.24,
2768
+ -0.36
2769
+ ],
2770
+ rotation: [
2771
+ 0,
2772
+ 0,
2773
+ 1.5
2774
+ ]
2775
+ },
2776
+ {
2777
+ t: 6.5,
2778
+ position: [
2779
+ 0.22,
2780
+ -0.2,
2781
+ -0.4
2782
+ ],
2783
+ rotation: [
2784
+ 0,
2785
+ 0,
2786
+ 0
2787
+ ]
2788
+ }
2789
+ ]
2790
+ }
2791
+ ];
2792
+ var HAND_USES = hand_uses_default;
2793
+ var handUseOf = (id, defs = HAND_USES) => defs.find((def) => def.id === id);
485
2794
 
486
2795
  // ../game-fluids/dist/index.js
487
2796
  var liquids_default = [
@@ -981,6 +3290,48 @@ var GameInteractablesHousehold = (() => {
981
3290
  tags: [
982
3291
  "brake_fluid"
983
3292
  ]
3293
+ },
3294
+ {
3295
+ id: "shampoo",
3296
+ color: 6069216,
3297
+ opacity: 0.75,
3298
+ stainColor: 9418462,
3299
+ viscosity: 4e3,
3300
+ density: 1020,
3301
+ dryTime: 3600,
3302
+ gloss: 0.9,
3303
+ leavesMark: true,
3304
+ drink: {
3305
+ thirst: 0,
3306
+ effects: [
3307
+ "poison"
3308
+ ]
3309
+ },
3310
+ tags: [
3311
+ "soap",
3312
+ "sticky"
3313
+ ]
3314
+ },
3315
+ {
3316
+ id: "toothpaste",
3317
+ color: 16054008,
3318
+ opacity: 1,
3319
+ stainColor: 15133935,
3320
+ viscosity: 1e5,
3321
+ density: 1300,
3322
+ dryTime: 7200,
3323
+ gloss: 0.6,
3324
+ leavesMark: true,
3325
+ drink: {
3326
+ thirst: 0,
3327
+ effects: [
3328
+ "poison"
3329
+ ]
3330
+ },
3331
+ tags: [
3332
+ "soap",
3333
+ "paste"
3334
+ ]
984
3335
  }
985
3336
  ];
986
3337
  var LIQUIDS = liquids_default;
@@ -12047,6 +14398,12 @@ var GameInteractablesHousehold = (() => {
12047
14398
  material: "glass",
12048
14399
  thickness: 3e-3
12049
14400
  }
14401
+ ],
14402
+ container: {
14403
+ capacityLiters: 0.3
14404
+ },
14405
+ estimated: [
14406
+ "container"
12050
14407
  ]
12051
14408
  },
12052
14409
  {
@@ -12102,6 +14459,7 @@ var GameInteractablesHousehold = (() => {
12102
14459
  shape: "box",
12103
14460
  color: 15790304,
12104
14461
  rarity: "common",
14462
+ model: "soap",
12105
14463
  parts: [
12106
14464
  {
12107
14465
  id: "body",
@@ -12137,6 +14495,7 @@ var GameInteractablesHousehold = (() => {
12137
14495
  shape: "bottle",
12138
14496
  color: 4885200,
12139
14497
  rarity: "common",
14498
+ model: "shampoo",
12140
14499
  consumable: {
12141
14500
  form: "liquid",
12142
14501
  unit: "ml",
@@ -12144,7 +14503,17 @@ var GameInteractablesHousehold = (() => {
12144
14503
  dose: 8,
12145
14504
  emptyKg: 0.044,
12146
14505
  density: 1.02
12147
- }
14506
+ },
14507
+ parts: [
14508
+ {
14509
+ id: "body",
14510
+ material: "plastic",
14511
+ thickness: 8e-4
14512
+ }
14513
+ ],
14514
+ estimated: [
14515
+ "parts"
14516
+ ]
12148
14517
  },
12149
14518
  {
12150
14519
  id: "toothpaste",
@@ -12163,13 +14532,24 @@ var GameInteractablesHousehold = (() => {
12163
14532
  shape: "tube",
12164
14533
  color: 15790320,
12165
14534
  rarity: "common",
14535
+ model: "toothpaste",
12166
14536
  consumable: {
12167
14537
  form: "paste",
12168
14538
  unit: "g",
12169
14539
  amount: 90,
12170
14540
  dose: 1,
12171
14541
  emptyKg: 0.01
12172
- }
14542
+ },
14543
+ parts: [
14544
+ {
14545
+ id: "body",
14546
+ material: "plastic",
14547
+ thickness: 8e-4
14548
+ }
14549
+ ],
14550
+ estimated: [
14551
+ "parts"
14552
+ ]
12173
14553
  },
12174
14554
  {
12175
14555
  id: "toothbrush",
@@ -12187,7 +14567,18 @@ var GameInteractablesHousehold = (() => {
12187
14567
  stack: 3,
12188
14568
  shape: "tool",
12189
14569
  color: 3840720,
12190
- rarity: "common"
14570
+ rarity: "common",
14571
+ model: "toothbrush",
14572
+ parts: [
14573
+ {
14574
+ id: "body",
14575
+ material: "plastic",
14576
+ thickness: 5e-3
14577
+ }
14578
+ ],
14579
+ estimated: [
14580
+ "parts"
14581
+ ]
12191
14582
  },
12192
14583
  {
12193
14584
  id: "deodorant",
@@ -12298,8 +14689,17 @@ var GameInteractablesHousehold = (() => {
12298
14689
  }
12299
14690
  ],
12300
14691
  estimated: [
12301
- "parts"
12302
- ]
14692
+ "parts",
14693
+ "consumable"
14694
+ ],
14695
+ consumable: {
14696
+ form: "liquid",
14697
+ unit: "ml",
14698
+ amount: 450,
14699
+ dose: 5,
14700
+ emptyKg: 0.03,
14701
+ density: 1.03
14702
+ }
12303
14703
  },
12304
14704
  {
12305
14705
  id: "bleach",
@@ -13789,8 +16189,12 @@ var GameInteractablesHousehold = (() => {
13789
16189
  thickness: 2e-3
13790
16190
  }
13791
16191
  ],
16192
+ container: {
16193
+ capacityLiters: 0.35
16194
+ },
13792
16195
  estimated: [
13793
- "parts"
16196
+ "parts",
16197
+ "container"
13794
16198
  ]
13795
16199
  },
13796
16200
  {
@@ -13937,6 +16341,41 @@ var GameInteractablesHousehold = (() => {
13937
16341
  },
13938
16342
  weapon: "brass_knuckles",
13939
16343
  model: "brass_knuckles"
16344
+ },
16345
+ {
16346
+ id: "plunger",
16347
+ category: "tools",
16348
+ kind: "tool",
16349
+ tags: [
16350
+ "cleaning"
16351
+ ],
16352
+ tools: [
16353
+ "plunger"
16354
+ ],
16355
+ size: [
16356
+ 0.14,
16357
+ 0.55,
16358
+ 0.14
16359
+ ],
16360
+ weight: 0.45,
16361
+ stack: 1,
16362
+ shape: "tool",
16363
+ color: 11545120,
16364
+ rarity: "common",
16365
+ finds: {
16366
+ places: [
16367
+ "house",
16368
+ "apartment"
16369
+ ]
16370
+ },
16371
+ parts: [
16372
+ {
16373
+ id: "body",
16374
+ material: "rubber",
16375
+ thickness: 4e-3
16376
+ }
16377
+ ],
16378
+ model: "plunger"
13940
16379
  }
13941
16380
  ];
13942
16381
  var kinds_default = [
@@ -15620,6 +18059,14 @@ var GameInteractablesHousehold = (() => {
15620
18059
  "alicate"
15621
18060
  ]
15622
18061
  },
18062
+ plunger: {
18063
+ created: true,
18064
+ idSource: "decision",
18065
+ sizeSource: "REF",
18066
+ vc3: [
18067
+ "desentupidor"
18068
+ ]
18069
+ },
15623
18070
  adjustable_wrench: {
15624
18071
  ite: "chave_inglesa",
15625
18072
  idSource: "decision",
@@ -19039,6 +21486,7 @@ var GameInteractablesHousehold = (() => {
19039
21486
  "item.toothbrush": "Toothbrush",
19040
21487
  "item.deodorant": "Deodorant",
19041
21488
  "item.toilet_paper": "Toilet paper",
21489
+ "item.plunger": "Toilet plunger",
19042
21490
  "item.towel": "Towel",
19043
21491
  "item.detergent": "Detergent",
19044
21492
  "item.bleach": "Bleach",
@@ -19547,6 +21995,7 @@ var GameInteractablesHousehold = (() => {
19547
21995
  "item.toothbrush": "Escova de dente",
19548
21996
  "item.deodorant": "Desodorante",
19549
21997
  "item.toilet_paper": "Papel higi\xEAnico",
21998
+ "item.plunger": "Desentupidor",
19550
21999
  "item.towel": "Toalha",
19551
22000
  "item.detergent": "Detergente",
19552
22001
  "item.bleach": "\xC1gua sanit\xE1ria",
@@ -19847,7 +22296,7 @@ var GameInteractablesHousehold = (() => {
19847
22296
  },
19848
22297
  toilet: {
19849
22298
  body: { material: "ceramic", joint: "bolt" },
19850
- parts: [["lid", door("plastic", "hinge", "lid")], ["flush_button", { material: "plastic", joint: "clip", piece: "button" }]]
22299
+ parts: [["lid", door("plastic", "hinge", "lid")], ["seat_ring", door("plastic", "hinge", "lid")], ["flush_button", { material: "plastic", joint: "clip", piece: "button" }]]
19851
22300
  },
19852
22301
  wall_socket: { body: { material: "plastic", joint: "screw" }, parts: [] },
19853
22302
  wall_switch: { body: { material: "plastic", joint: "screw" }, parts: [["rocker", { material: "plastic", joint: "clip", piece: "rocker" }]] },
@@ -20206,7 +22655,8 @@ var GameInteractablesHousehold = (() => {
20206
22655
  return out;
20207
22656
  }
20208
22657
  /**
20209
- * Container with its inner volume given by two corners. Explicit `item.contents[id]` wins over the loot table.
22658
+ * Container with its inner volume given by two corners. Explicit `item.contents[id]` wins over the loot table, slot by slot over the builder's own `contents`
22659
+ * (what the piece always comes with: the soap and shampoo on a shower's shelf), which stays in every slot the explicit list leaves empty.
20210
22660
  * Slots are validated lazily by the tests, not here.
20211
22661
  */
20212
22662
  container(o) {
@@ -20221,9 +22671,9 @@ var GameInteractablesHousehold = (() => {
20221
22671
  if (o.access) c.access = o.access;
20222
22672
  if (o.loot) c.loot = o.loot;
20223
22673
  const given = this.M.contents?.[o.id];
20224
- if (given) {
22674
+ if (given || o.contents) {
20225
22675
  c.contents = o.slots.map((_, i) => {
20226
- const g = given[i];
22676
+ const g = given?.[i] ?? o.contents?.[i];
20227
22677
  if (!g) return null;
20228
22678
  const s = { type: g.type, qty: g.qty };
20229
22679
  if (g.data) s.data = { ...g.data };
@@ -21160,6 +23610,9 @@ var GameInteractablesHousehold = (() => {
21160
23610
  "prompt.toilet_lid": "Toilet lid",
21161
23611
  "prompt.toilet_lid.open": "Close the lid",
21162
23612
  "prompt.toilet_lid.closed": "Lift the lid",
23613
+ "prompt.toilet_seat": "Toilet seat",
23614
+ "prompt.toilet_seat.open": "Lower the seat",
23615
+ "prompt.toilet_seat.closed": "Lift the seat",
21163
23616
  "prompt.switch": "Light switch",
21164
23617
  "prompt.switch.on": "Switch off",
21165
23618
  "prompt.switch.on.verb": "Switch off",
@@ -21420,6 +23873,9 @@ var GameInteractablesHousehold = (() => {
21420
23873
  "prompt.toilet_lid": "Tampa do vaso",
21421
23874
  "prompt.toilet_lid.open": "Fechar a tampa",
21422
23875
  "prompt.toilet_lid.closed": "Levantar a tampa",
23876
+ "prompt.toilet_seat": "Assento do vaso",
23877
+ "prompt.toilet_seat.open": "Abaixar o assento",
23878
+ "prompt.toilet_seat.closed": "Levantar o assento",
21423
23879
  "prompt.switch": "Interruptor",
21424
23880
  "prompt.switch.on": "Desligar a luz",
21425
23881
  "prompt.switch.on.verb": "Desligar",
@@ -22831,7 +25287,76 @@ var GameInteractablesHousehold = (() => {
22831
25287
  // src/builders/kitchen.ts
22832
25288
  var STOVE_WALL_GAP = 0.04;
22833
25289
  var STEEL = 11843772;
25290
+ var HAND_WASH_SOAP_GRAMS = 0.4;
25291
+ function scrubSecondsOf(clip) {
25292
+ const use = handUseOf(clip);
25293
+ if (!use) throw new Error(`No hand use for the washing clip ${clip}`);
25294
+ return use.duration;
25295
+ }
22834
25296
  var CHROME = 13817562;
25297
+ var DISHES = ["plate", "bowl", "cup", "wine_glass", "cutlery", "knife", "pot", "pan"];
25298
+ var DISH_NEEDS = ["detergent", "sponge"];
25299
+ var DIRTY_PLATE = 0.8;
25300
+ var DIRTY_CUP = 0.5;
25301
+ var DIRTY_CUTLERY = 0.6;
25302
+ function goodsSize(id) {
25303
+ const item = GOODS_ITEMS.find((candidate) => candidate.id === id);
25304
+ if (!item) throw new Error(`game-interactables-household: the sinks lay "${id}", which the goods catalogue does not have`);
25305
+ return [item.size[0], item.size[1], item.size[2]];
25306
+ }
25307
+ var laid = (type, data) => ({ stack: { type, qty: 1, ...data ? { data } : {} }, size: goodsSize(type) });
25308
+ var LAY_GAP = 5e-3;
25309
+ function layOnFloor(area, things) {
25310
+ const slots = [];
25311
+ const contents = [];
25312
+ const left = [];
25313
+ let x = area.x0;
25314
+ let z = area.z0;
25315
+ let row = 0;
25316
+ const fits = (w, d, atX, atZ) => atX + w + 2 * LAY_GAP <= area.x1 + 1e-9 && atZ + d + 2 * LAY_GAP <= area.z1 + 1e-9;
25317
+ for (const thing of things) {
25318
+ const [w, h, d] = thing.size;
25319
+ if (!fits(w, d, x, z) && fits(w, d, area.x0, z + row)) [x, z, row] = [area.x0, z + row, 0];
25320
+ if (!fits(w, d, x, z)) {
25321
+ left.push(thing);
25322
+ continue;
25323
+ }
25324
+ const { stack } = thing;
25325
+ slots.push({ pos: [round3(x + LAY_GAP + w / 2), round3(area.y), round3(z + LAY_GAP + d / 2)], max: [w, h, d] });
25326
+ contents.push(stack);
25327
+ x += w + 2 * LAY_GAP;
25328
+ row = Math.max(row, d + 2 * LAY_GAP);
25329
+ }
25330
+ return { slots, contents, left };
25331
+ }
25332
+ var DIRTY_DISHES = [
25333
+ laid("plate", { dirt: DIRTY_PLATE }),
25334
+ laid("cup", { dirt: DIRTY_CUP }),
25335
+ laid("cutlery", { dirt: DIRTY_CUTLERY })
25336
+ ];
25337
+ var WASHING_THINGS = [
25338
+ laid("detergent"),
25339
+ laid("sponge"),
25340
+ laid("cup")
25341
+ ];
25342
+ function basinContents(c, basin, groups) {
25343
+ const laid2 = groups.map(({ things, area }) => layOnFloor({ ...area ?? { x0: basin.from[0], x1: basin.to[0], z0: basin.from[2], z1: basin.to[2] }, y: basin.from[1] }, things));
25344
+ c.container({ id: "in_basin", from: [...basin.from], to: [...basin.to], slots: laid2.flatMap((l) => l.slots), contents: laid2.flatMap((l) => l.contents) });
25345
+ return laid2.flatMap((l) => l.left);
25346
+ }
25347
+ function washDishes(c, basin, rack) {
25348
+ c.add("uses", {
25349
+ id: "wash_dishes",
25350
+ do: "wash",
25351
+ fixture: "tap",
25352
+ surface: "dishes",
25353
+ clip: "wash_dishes",
25354
+ label: "use.wash_dishes",
25355
+ needs: [...DISH_NEEDS],
25356
+ dose: { need: 0 },
25357
+ dishes: { ids: [...DISHES], basin: basin.id, rack }
25358
+ });
25359
+ }
22835
25360
  function tap2(c, x, y, z, id, partId, basin) {
22836
25361
  c.cyl("metal", x, y - 2e-3, z, 0.03, 0.022, STEEL, "cyl");
22837
25362
  c.cyl("metal", x, y + 0.02, z, 0.017, 0.19, CHROME, "cyl");
@@ -22853,6 +25378,8 @@ var GameInteractablesHousehold = (() => {
22853
25378
  c.add("fixtures", { id, kind: "tap", outlet, dir: [0, -1, 0], flow: 7, part: partId, tank: "auto" });
22854
25379
  c.add("emitters", { id: `${id}_water`, kind: "water", pos: outlet, dir: [0, -1, 0], source: id, size: 0.02, ...streamInto(basin, outlet) });
22855
25380
  c.interact(`use_${id}`, [round3(x + 0.05), round3(y + 0.126), round3(z)], { do: "toggle_fixture", fixture: id }, "prompt.tap", 1.3);
25381
+ c.add("uses", { id: `drink_${id}`, do: "drink", from: "vessel", fixture: id, clip: "drink", fillClip: "fill_cup", label: "use.drink_water" });
25382
+ c.add("uses", { id: `drink_hands_${id}`, do: "drink", from: "hands", fixture: id, clip: "drink_cupped_hands", label: "use.drink_from_hands" });
22856
25383
  return outlet;
22857
25384
  }
22858
25385
  function stove(c) {
@@ -23020,6 +25547,11 @@ var GameInteractablesHousehold = (() => {
23020
25547
  c.add("basins", basin);
23021
25548
  return basin;
23022
25549
  }
25550
+ function drainboardSpots(x0, x1, z0, z1, y) {
25551
+ const spots = [];
25552
+ for (const k of [0.7, 0.3]) for (const j of [0.2, 0.5, 0.8]) spots.push([round3(x0 + (x1 - x0) * j), round3(y), round3(z0 + (z1 - z0) * k)]);
25553
+ return spots;
25554
+ }
23023
25555
  var KITCHEN_BASIN_DEPTH = 0.2;
23024
25556
  var BATHROOM_BASIN_DEPTH = 0.14;
23025
25557
  var TAILPIECE_GAP = 2e-3;
@@ -23048,6 +25580,11 @@ var GameInteractablesHousehold = (() => {
23048
25580
  const basin = counterWithBasin(c, { top, bx0, bx1, bz0, bz1, depth: KITCHEN_BASIN_DEPTH, counter: 8157816, steel: true });
23049
25581
  for (let i = 0; i < 7; i++) c.b("metal", bx1 + 0.06, top, bz0 + 0.04 + i * 0.07, hw - 0.06, top + 4e-3, bz0 + 0.052 + i * 0.07, 10133154);
23050
25582
  tap2(c, (bx0 + bx1) / 2, top, -hd + 0.07, "tap", "tap_handle", basin);
25583
+ washDishes(c, basin, drainboardSpots(bx1 + 0.06, hw - 0.06, bz0 + 0.04, bz0 + 0.04 + 6 * 0.07 + 0.012, top + 5e-3));
25584
+ const counter = { x0: -hw, x1: round3(bx0 - 0.01), z0: -hd, z1: zf };
25585
+ const onCounter = layOnFloor({ ...counter, y: top }, WASHING_THINGS);
25586
+ c.container({ id: "counter", from: [counter.x0, top, counter.z0], to: [counter.x1, round3(top + 0.3), counter.z1], slots: onCounter.slots, contents: onCounter.contents });
25587
+ basinContents(c, basin, [{ things: [...DIRTY_DISHES, ...onCounter.left] }]);
23051
25588
  pipes(c, (bx0 + bx1) / 2, top - KITCHEN_BASIN_DEPTH, (bz0 + bz1) / 2);
23052
25589
  const mid = 15e-4;
23053
25590
  hingedDoor(c, { id: "door_1", x0: -hw + 3e-3, x1: -mid, y0: 0.103, y1: top - 0.043, zf, t, side: "left", color: front, inner: lining, handle: "bar_v", handleLen: 0.22, label: "prompt.door" });
@@ -23088,6 +25625,44 @@ var GameInteractablesHousehold = (() => {
23088
25625
  slots: c.row(sh.ix0 + 0.15, sh.ix1 - 0.01, sh.iy0, (sh.iz0 + sh.iz1) / 2, 1, [0.3, 0.4, 0.3]),
23089
25626
  loot: "under_sink"
23090
25627
  });
25628
+ washbasinCounter(c, top, hw * 0.6);
25629
+ c.add("uses", { id: "wash_hands", do: "wash", fixture: "tap", surface: "hands", clip: "wash_hands", label: "use.wash_hands", needs: ["soap"], dose: { need: 0, amount: HAND_WASH_SOAP_GRAMS }, scrubSeconds: scrubSecondsOf("wash_hands") });
25630
+ c.add("uses", { id: "brush_teeth", do: "wash", fixture: "tap", surface: "mouth", clip: "brush_teeth", label: "use.brush_teeth", needs: ["toothbrush", "toothpaste"], dose: { need: 1 }, scrubSeconds: scrubSecondsOf("brush_teeth") });
25631
+ }
25632
+ function washbasinCounter(c, top, basinEdge) {
25633
+ const { hw, hd } = c;
25634
+ const side = round3((basinEdge + hw) / 2);
25635
+ c.container({
25636
+ id: "counter",
25637
+ from: [-hw, top, -hd],
25638
+ to: [hw, top + 0.12, hd],
25639
+ slots: [
25640
+ { pos: [-side, top, 0], max: [0.1, 0.04, 0.1] },
25641
+ { pos: [round3(side - 0.025), top, 0.02], max: [0.03, 0.03, 0.19], lay: "z" },
25642
+ { pos: [round3(side + 0.028), top, 0.02], max: [0.045, 0.04, 0.19], lay: "z" },
25643
+ { pos: [round3(-basinEdge + 0.01), top, round3(-hd + 0.065)], max: [0.09, 0.1, 0.09] }
25644
+ ],
25645
+ contents: [{ type: "soap", qty: 1 }, { type: "toothbrush", qty: 1 }, { type: "toothpaste", qty: 1 }, { type: "cup", qty: 1 }]
25646
+ });
25647
+ }
25648
+ function showerShelf(c) {
25649
+ const { hw, hd } = c;
25650
+ const y = 0.85;
25651
+ const x0 = -hw + 0.033;
25652
+ const x1 = round3(x0 + 0.3);
25653
+ const z0 = -hd + 0.033;
25654
+ const z1 = round3(z0 + 0.13);
25655
+ c.b("plain", x0, y - 0.025, z0, x1, y, z1, 15133162);
25656
+ c.container({
25657
+ id: "shelf",
25658
+ from: [x0, y, z0],
25659
+ to: [x1, y + 0.25, z1],
25660
+ slots: [
25661
+ { pos: [round3(x0 + 0.07), y, round3((z0 + z1) / 2)], max: [0.1, 0.04, 0.06] },
25662
+ { pos: [round3(x0 + 0.2), y, round3((z0 + z1) / 2)], max: [0.07, 0.21, 0.05] }
25663
+ ],
25664
+ contents: [{ type: "soap", qty: 1 }, { type: "shampoo", qty: 1 }]
25665
+ });
23091
25666
  }
23092
25667
  function utilitySink(c) {
23093
25668
  const { hw, hd } = c;
@@ -23111,6 +25686,13 @@ var GameInteractablesHousehold = (() => {
23111
25686
  const tub = { id: "basin", from: [round3(x0 + 0.03), round3(tubTop - 0.276), round3(z0 + 0.03)], to: [round3(x1 - 0.03), tubTop, round3(z1 - 0.03)] };
23112
25687
  c.add("basins", tub);
23113
25688
  tap2(c, 0, tubTop + 0.08, -hd + 0.08, "tap", "tap_handle", tub);
25689
+ washDishes(c, tub, drainboardSpots(round3(x1 - 0.03 - (x1 - x0) * 0.4) + 0.01, round3(x1 - 0.05), round3(z0 + 0.05), round3(z1 - 0.23), round3(tubTop - 0.276 + 5e-3)));
25690
+ const rackX = round3(x1 - 0.03 - (x1 - x0) * 0.4);
25691
+ const washboardZ = round3(z1 - 0.2);
25692
+ basinContents(c, tub, [
25693
+ { things: DIRTY_DISHES.slice(0, 2), area: { x0: tub.from[0], x1: rackX, z0: tub.from[2], z1: washboardZ } },
25694
+ { things: WASHING_THINGS, area: { x0: round3(x0 + 0.04 + (x1 - x0) * 0.4), x1: tub.to[0], z0: washboardZ, z1: tub.to[2] } }
25695
+ ]);
23114
25696
  c.add("fixtures", { id: "basin", kind: "utility_sink", outlet: [0, round3(tubTop - 0.1), 0], dir: [0, -1, 0], flow: 12, tank: "auto" });
23115
25697
  }
23116
25698
  var SHOWER_DOOR = 0.72;
@@ -23146,6 +25728,9 @@ var GameInteractablesHousehold = (() => {
23146
25728
  c.add("emitters", { id: "shower_water", kind: "water", pos: outlet, dir: [0, -1, 0.15], source: "shower", size: 0.35 });
23147
25729
  c.add("emitters", { id: "shower_steam", kind: "steam", pos: [0, 1.4, 0], dir: [0, 1, 0], source: "shower", size: 0.8 });
23148
25730
  c.interact("use_shower", [0.25, 1.1, -hd + 0.08], { do: "toggle_fixture", fixture: "shower" }, "prompt.shower", 1.3);
25731
+ showerShelf(c);
25732
+ c.add("uses", { id: "lather_body", do: "wash", fixture: "shower", surface: "body", clip: "lather_body", label: "use.lather_body", needs: ["soap"], dose: { need: 0 }, opensFixture: false, requiresFlowing: true, scrubSeconds: scrubSecondsOf("lather_body") });
25733
+ c.add("uses", { id: "shampoo_hair", do: "wash", fixture: "shower", surface: "hair", clip: "shampoo_hair", label: "use.shampoo_hair", needs: ["shampoo"], dose: { need: 0 }, opensFixture: false, requiresFlowing: true, scrubSeconds: scrubSecondsOf("shampoo_hair") });
23149
25734
  const gl = 12573670;
23150
25735
  const zFront = hd - 0.015;
23151
25736
  const gh = h - 0.1;
@@ -23209,8 +25794,16 @@ var GameInteractablesHousehold = (() => {
23209
25794
  c.b("plain", -0.195, ty + th, -hd - 0, 0.195, ty + th + 0.025, -hd + 0.205, sh);
23210
25795
  c.b("plain", -0.185, ty + 0.01, -hd + 0.2, 0.185, ty + 0.03, -hd + 0.215, sh);
23211
25796
  const seatY = 0.4;
23212
- c.lathe("plain", 0, 0, BOWL_Z, SEAT_PROFILE, 15659248);
23213
- c.b("plain", -0.17, seatY + 2e-3, -0.07, 0.17, seatY + 0.023, -0.03, 15659248);
25797
+ c.part(
25798
+ "seat_ring",
25799
+ [0, seatY, -0.05],
25800
+ { kind: "hinge", axis: [1, 0, 0], angle: -1.55 },
25801
+ () => {
25802
+ c.lathe("plain", 0, 0, BOWL_Z, SEAT_PROFILE, 15659248);
25803
+ c.b("plain", -0.165, seatY + 2e-3, -0.07, 0.165, seatY + 0.023, -0.03, 15659248);
25804
+ },
25805
+ { label: "prompt.toilet_seat", at: [0.16, seatY + 0.02, 0.2] }
25806
+ );
23214
25807
  c.part(
23215
25808
  "lid",
23216
25809
  [0, seatY + 0.025, -0.06],
@@ -23233,10 +25826,14 @@ var GameInteractablesHousehold = (() => {
23233
25826
  { label: "prompt.flush", at: false, noSweep: true }
23234
25827
  );
23235
25828
  c.add("fixtures", { id: "flush", kind: "flush", outlet: [0, 0.36, BOWL_Z], dir: [0, -1, 0], volume: 6, part: "flush_button", tank: "auto", cleans: "bowl" });
23236
- const bowl = { id: "bowl", from: [-0.12, 0.26, BOWL_Z - 0.12], to: [0.12, 0.36, BOWL_Z + 0.12], shape: "round", soils: true };
25829
+ const drain = { weir: 0.06, trap: 0.05, carries: 0.5, siphon: 3, prime: 0.02, refill: 20 };
25830
+ const bowl = { id: "bowl", from: [-0.12, 0.26, BOWL_Z - 0.12], to: [0.12, 0.36, BOWL_Z + 0.12], shape: "round", soils: true, drain };
23237
25831
  c.add("basins", bowl);
23238
- c.add("uses", { id: "pee", do: "relieve", basin: "bowl", kind: "urine", label: "use.relieve.urine" });
23239
- c.add("uses", { id: "poo", do: "relieve", basin: "bowl", kind: "feces", label: "use.relieve.feces" });
25832
+ c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(seatY + 0.025), 0.06], ry: 0, exit: [0, 0, round3(hd + 0.3)] });
25833
+ const parts2 = { cover: "lid", ring: "seat_ring", seat: "seat" };
25834
+ c.add("uses", { id: "pee", do: "relieve", basin: "bowl", kind: "urine", label: "use.relieve.urine", seconds: 8, ...parts2, stand: [0, 0, round3(BOWL_Z + 0.5)] });
25835
+ c.add("uses", { id: "poo", do: "relieve", basin: "bowl", kind: "feces", label: "use.relieve.feces", seconds: 12, ...parts2 });
25836
+ c.add("uses", { id: "plunge", do: "plunge", basin: "bowl", label: "use.plunge", tool: "plunger", seconds: 4, stand: [0, 0, round3(BOWL_Z + 0.55)] });
23240
25837
  const rim = [0, 0.385, BOWL_Z];
23241
25838
  c.add("emitters", { id: "flush_water", kind: "water", pos: rim, dir: [0, -1, 0], source: "flush", size: 0.08, ...streamInto(bowl, rim) });
23242
25839
  c.interact("use_flush", [0, ty + th + 0.05, -hd + 0.1], { do: "toggle_fixture", fixture: "flush" }, "prompt.flush");