gdcore-tools 2.0.0-gd-v5.4.220-autobuild → 2.0.0-gd-v5.5.222-autobuild

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.
Files changed (29) hide show
  1. package/dist/Runtime/Extensions/3D/JsExtension.js +3 -3
  2. package/dist/Runtime/Extensions/DialogueTree/bondage.js/dist/bondage.d.ts +39 -0
  3. package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js +2 -2
  4. package/dist/Runtime/Extensions/DialogueTree/dialoguetools.js.map +2 -2
  5. package/dist/Runtime/Extensions/Physics2Behavior/JsExtension.js +4 -2
  6. package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js +1 -1
  7. package/dist/Runtime/Extensions/Physics2Behavior/physics2runtimebehavior.js.map +2 -2
  8. package/dist/Runtime/Extensions/Physics3DBehavior/JsExtension.js +64 -10
  9. package/dist/Runtime/Extensions/Physics3DBehavior/Physics3DRuntimeBehavior.js +1 -1
  10. package/dist/Runtime/Extensions/Physics3DBehavior/Physics3DRuntimeBehavior.js.map +2 -2
  11. package/dist/Runtime/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.js +1 -1
  12. package/dist/Runtime/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.js.map +2 -2
  13. package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.d.ts +283 -5
  14. package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.wasm.js +1 -1
  15. package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.wasm.js.map +2 -2
  16. package/dist/Runtime/Extensions/Physics3DBehavior/jolt-physics.wasm.wasm +0 -0
  17. package/dist/Runtime/Extensions/TextInput/JsExtension.js +110 -8
  18. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject-pixi-renderer.js +1 -1
  19. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject-pixi-renderer.js.map +2 -2
  20. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject.js +1 -1
  21. package/dist/Runtime/Extensions/TextInput/textinputruntimeobject.js.map +2 -2
  22. package/dist/Runtime/events-tools/soundtools.js +1 -1
  23. package/dist/Runtime/events-tools/soundtools.js.map +2 -2
  24. package/dist/Runtime/types/project-data.d.ts +0 -1
  25. package/dist/lib/libGD.cjs +1 -1
  26. package/dist/lib/libGD.wasm +0 -0
  27. package/dist/loaders.cjs +3 -3
  28. package/gd.d.ts +44 -24
  29. package/package.json +1 -1
@@ -55,6 +55,26 @@ declare namespace Jolt {
55
55
  clear(): void;
56
56
  data(): Mat44MemRef;
57
57
  }
58
+ class ArrayBodyID {
59
+ empty(): boolean;
60
+ size(): number;
61
+ at(inIndex: number): BodyID;
62
+ push_back(inValue: BodyID): void;
63
+ reserve(inSize: number): void;
64
+ resize(inSize: number): void;
65
+ clear(): void;
66
+ data(): BodyIDMemRef;
67
+ }
68
+ class ArrayBodyPtr {
69
+ empty(): boolean;
70
+ size(): number;
71
+ at(inIndex: number): Body;
72
+ push_back(inValue: Body): void;
73
+ reserve(inSize: number): void;
74
+ resize(inSize: number): void;
75
+ clear(): void;
76
+ data(): BodyPtrMemRef;
77
+ }
58
78
  const EBodyType_RigidBody: number;
59
79
  const EBodyType_SoftBody: number;
60
80
  type EBodyType = typeof EBodyType_RigidBody | typeof EBodyType_SoftBody;
@@ -414,6 +434,8 @@ declare namespace Jolt {
414
434
  class Vec3MemRef {}
415
435
  class QuatMemRef {}
416
436
  class Mat44MemRef {}
437
+ class BodyIDMemRef {}
438
+ class BodyPtrMemRef {}
417
439
  class FloatMemRef {}
418
440
  class Uint8MemRef {}
419
441
  class UintMemRef {}
@@ -429,6 +451,10 @@ declare namespace Jolt {
429
451
  sMin(inLHS: Vec3, inRHS: Vec3): Vec3;
430
452
  sMax(inLHS: Vec3, inRHS: Vec3): Vec3;
431
453
  sClamp(inValue: Vec3, inMin: Vec3, inMax: Vec3): Vec3;
454
+ sFusedMultiplyAdd(inMul1: Vec3, inMul2: Vec3, inAdd: Vec3): Vec3;
455
+ sOr(inV1: Vec3, inV2: Vec3): Vec3;
456
+ sXor(inV1: Vec3, inV2: Vec3): Vec3;
457
+ sAnd(inV1: Vec3, inV2: Vec3): Vec3;
432
458
  sUnitSpherical(inTheta: number, inPhi: number): Vec3;
433
459
  GetComponent(inCoordinate: number): number;
434
460
  Equals(inV: Vec3): boolean;
@@ -455,10 +481,21 @@ declare namespace Jolt {
455
481
  Reciprocal(): Vec3;
456
482
  Cross(inRHS: Vec3): Vec3;
457
483
  Dot(inRHS: Vec3): number;
484
+ DotV(inRHS: Vec3): Vec3;
485
+ DotV4(inRHS: Vec3): Vec4;
458
486
  Add(inV: Vec3): Vec3;
459
487
  Sub(inV: Vec3): Vec3;
460
488
  Mul(inV: number): Vec3;
461
489
  Div(inV: number): Vec3;
490
+ MulVec3(inV: Vec3): Vec3;
491
+ MulFloat(inV: number): Vec3;
492
+ DivVec3(inV: Vec3): Vec3;
493
+ DivFloat(inV: number): Vec3;
494
+ AddVec3(inV: Vec3): Vec3;
495
+ SubVec3(inV: Vec3): Vec3;
496
+ SplatX(): Vec4;
497
+ SplatY(): Vec4;
498
+ SplatZ(): Vec4;
462
499
  ReduceMin(): number;
463
500
  ReduceMax(): number;
464
501
  Sqrt(): Vec3;
@@ -500,6 +537,12 @@ declare namespace Jolt {
500
537
  Sub(inV: Vec3): RVec3;
501
538
  Mul(inV: number): RVec3;
502
539
  Div(inV: number): RVec3;
540
+ MulRVec3(inV: RVec3): RVec3;
541
+ MulFloat(inV: number): RVec3;
542
+ DivRVec3(inV: RVec3): RVec3;
543
+ DivFloat(inV: number): RVec3;
544
+ AddRVec3(inV: RVec3): RVec3;
545
+ SubRVec3(inV: RVec3): RVec3;
503
546
  Sqrt(): RVec3;
504
547
  GetSign(): RVec3;
505
548
  }
@@ -508,6 +551,14 @@ declare namespace Jolt {
508
551
  constructor(inV: Vec4);
509
552
  constructor(inV: Vec3, inW: number);
510
553
  constructor(inX: number, inY: number, inZ: number, inW: number);
554
+ sZero(): Vec4;
555
+ sReplicate(inV: number): Vec4;
556
+ sMin(inLHS: Vec4, inRHS: Vec4): Vec4;
557
+ sMax(inLHS: Vec4, inRHS: Vec4): Vec4;
558
+ sFusedMultiplyAdd(inMul1: Vec4, inMul2: Vec4, inAdd: Vec4): Vec4;
559
+ sOr(inV1: Vec4, inV2: Vec4): Vec4;
560
+ sXor(inV1: Vec4, inV2: Vec4): Vec4;
561
+ sAnd(inV1: Vec4, inV2: Vec4): Vec4;
511
562
  GetX(): number;
512
563
  GetY(): number;
513
564
  GetZ(): number;
@@ -518,6 +569,18 @@ declare namespace Jolt {
518
569
  SetW(inW: number): void;
519
570
  Set(inX: number, inY: number, inZ: number, inW: number): void;
520
571
  GetComponent(inCoordinate: number): number;
572
+ IsClose(inV: Vec4, inMaxDistSq?: number): boolean;
573
+ IsNormalized(inTolerance?: number): boolean;
574
+ Add(inV: Vec4): Vec4;
575
+ Sub(inV: Vec4): Vec4;
576
+ Mul(inV: number): Vec4;
577
+ Div(inV: number): Vec4;
578
+ MulVec4(inV: Vec4): Vec4;
579
+ MulFloat(inV: number): Vec4;
580
+ DivVec4(inV: Vec4): Vec4;
581
+ DivFloat(inV: number): Vec4;
582
+ AddVec4(inV: Vec4): Vec4;
583
+ SubVec4(inV: Vec4): Vec4;
521
584
  }
522
585
  class Vector2 {
523
586
  constructor();
@@ -531,6 +594,10 @@ declare namespace Jolt {
531
594
  Sub(inV: Vector2): Vector2;
532
595
  Mul(inV: number): Vector2;
533
596
  Div(inV: number): Vector2;
597
+ MulFloat(inV: number): Vector2;
598
+ DivFloat(inV: number): Vector2;
599
+ AddVector2(inV: Vector2): Vector2;
600
+ SubVector2(inV: Vector2): Vector2;
534
601
  Dot(inRHS: Vector2): number;
535
602
  }
536
603
  class Quat {
@@ -599,10 +666,17 @@ declare namespace Jolt {
599
666
  sRotationY(inY: number): Mat44;
600
667
  sRotationZ(inZ: number): Mat44;
601
668
  sRotation(inQ: Quat): Mat44;
669
+ sRotationAxisAngle(inAxis: Vec3, inAngle: number): Mat44;
602
670
  sTranslation(inTranslation: Vec3): Mat44;
603
671
  sRotationTranslation(inRotation: Quat, inTranslation: Vec3): Mat44;
604
672
  sInverseRotationTranslation(inRotation: Quat, inTranslation: Vec3): Mat44;
605
673
  sScale(inScale: number): Mat44;
674
+ sScaleVec3(inScale: Vec3): Mat44;
675
+ sOuterProduct(inV1: Vec3, inV2: Vec3): Mat44;
676
+ sCrossProduct(inV: Vec3): Mat44;
677
+ sQuatLeftMultiply(inQ: Quat): Mat44;
678
+ sQuatRightMultiply(inQ: Quat): Mat44;
679
+ sLookAt(inPos: Vec3, inTarget: Vec3, inUp: Vec3): Mat44;
606
680
  sPerspective(
607
681
  inFovY: number,
608
682
  inAspect: number,
@@ -612,16 +686,32 @@ declare namespace Jolt {
612
686
  GetAxisX(): Vec3;
613
687
  GetAxisY(): Vec3;
614
688
  GetAxisZ(): Vec3;
689
+ GetDiagonal3(): Vec3;
690
+ GetDiagonal4(): Vec4;
615
691
  GetRotation(): Mat44;
692
+ GetRotationSafe(): Mat44;
616
693
  GetQuaternion(): Quat;
617
694
  GetTranslation(): Vec3;
695
+ Equals(inV: Mat44): boolean;
696
+ NotEquals(inV: Mat44): boolean;
618
697
  IsClose(inM: Mat44, inMaxDistSq?: number): boolean;
698
+ Add(inM: Mat44): Mat44;
699
+ MulFloat(inV: number): Mat44;
700
+ MulMat44(inM: Mat44): Mat44;
701
+ MulVec3(inV: Vec3): Vec3;
702
+ MulVec4(inV: Vec4): Vec4;
703
+ AddMat44(inM: Mat44): Mat44;
704
+ SubMat44(inM: Mat44): Mat44;
619
705
  Multiply3x3(inV: Vec3): Vec3;
620
706
  Multiply3x3Transposed(inV: Vec3): Vec3;
707
+ Multiply3x3LeftTransposed(inM: Mat44): Mat44;
708
+ Multiply3x3RightTransposed(inM: Mat44): Mat44;
621
709
  Transposed(): Mat44;
622
710
  Transposed3x3(): Mat44;
623
711
  Inversed(): Mat44;
624
712
  InversedRotationTranslation(): Mat44;
713
+ Adjointed3x3(): Mat44;
714
+ SetInversed3x3(inM: Mat44): boolean;
625
715
  GetDeterminant3x3(): number;
626
716
  Inversed3x3(): Mat44;
627
717
  GetDirectionPreservingMatrix(): Mat44;
@@ -629,12 +719,16 @@ declare namespace Jolt {
629
719
  PostTranslated(inTranslation: Vec3): Mat44;
630
720
  PreScaled(inScale: Vec3): Mat44;
631
721
  PostScaled(inScale: Vec3): Mat44;
722
+ Decompose(outScale: Vec3): Mat44;
632
723
  SetColumn3(inCol: number, inV: Vec3): void;
724
+ SetColumn4(inCol: number, inV: Vec4): void;
633
725
  SetAxisX(inV: Vec3): void;
634
726
  SetAxisY(inV: Vec3): void;
635
727
  SetAxisZ(inV: Vec3): void;
728
+ SetDiagonal3(inV: Vec3): void;
729
+ SetDiagonal4(inV: Vec4): void;
636
730
  SetTranslation(inV: Vec3): void;
637
- SetColumn4(inCol: number, inV: Vec4): void;
731
+ GetColumn3(inCol: number): Vec3;
638
732
  GetColumn4(inCol: number): Vec4;
639
733
  }
640
734
  class RMat44 {
@@ -645,10 +739,18 @@ declare namespace Jolt {
645
739
  sTranslation(inTranslation: RVec3): RMat44;
646
740
  sRotationTranslation(inRotation: Quat, inTranslation: RVec3): RMat44;
647
741
  sInverseRotationTranslation(inRotation: Quat, inTranslation: RVec3): RMat44;
742
+ ToMat44(): Mat44;
743
+ Equals(inV: RMat44): boolean;
744
+ NotEquals(inV: RMat44): boolean;
745
+ MulVec3(inV: Vec3): RVec3;
746
+ MulRVec3(inV: RVec3): RVec3;
747
+ MulMat44(inM: Mat44): RMat44;
748
+ MulRMat44(inM: RMat44): RMat44;
648
749
  GetAxisX(): Vec3;
649
750
  GetAxisY(): Vec3;
650
751
  GetAxisZ(): Vec3;
651
752
  GetRotation(): Mat44;
753
+ SetRotation(inRotation: Mat44): void;
652
754
  GetQuaternion(): Quat;
653
755
  GetTranslation(): RVec3;
654
756
  IsClose(inM: RMat44, inMaxDistSq?: number): boolean;
@@ -661,25 +763,59 @@ declare namespace Jolt {
661
763
  PostTranslated(inTranslation: Vec3): RMat44;
662
764
  PreScaled(inScale: Vec3): RMat44;
663
765
  PostScaled(inScale: Vec3): RMat44;
766
+ GetDirectionPreservingMatrix(): Mat44;
664
767
  SetColumn3(inCol: number, inV: Vec3): void;
768
+ GetColumn3(inCol: number): Vec3;
665
769
  SetAxisX(inV: Vec3): void;
666
770
  SetAxisY(inV: Vec3): void;
667
771
  SetAxisZ(inV: Vec3): void;
668
772
  SetTranslation(inV: RVec3): void;
669
773
  SetColumn4(inCol: number, inV: Vec4): void;
670
774
  GetColumn4(inCol: number): Vec4;
775
+ Decompose(outScale: Vec3): RMat44;
671
776
  }
672
777
  class AABox {
673
778
  constructor();
674
779
  constructor(inMin: Vec3, inMax: Vec3);
675
780
  sBiggest(): AABox;
781
+ sFromTwoPoints(inP1: Vec3, inP2: Vec3): AABox;
782
+ sFromTriangle(inVertices: VertexList, inTriangle: IndexedTriangle): AABox;
783
+ Equals(inB: AABox): boolean;
784
+ NotEquals(inB: AABox): boolean;
785
+ SetEmpty(): void;
786
+ IsValid(): boolean;
787
+ EncapsulateVec3(inV: Vec3): void;
788
+ EncapsulateAABox(inBox: AABox): void;
789
+ EncapsulateTriangle(inTriangle: Triangle): void;
790
+ EncapsulateIndexedTriangle(
791
+ inVertices: VertexList,
792
+ inTriangle: IndexedTriangle
793
+ ): void;
794
+ Intersect(inOther: AABox): AABox;
795
+ EnsureMinimalEdgeLength(inMinEdgeLength: number): void;
796
+ ExpandBy(inV: Vec3): void;
797
+ GetCenter(): Vec3;
798
+ GetExtent(): Vec3;
799
+ GetSize(): Vec3;
800
+ GetSurfaceArea(): number;
801
+ GetVolume(): number;
802
+ ContainsVec3(inOther: Vec3): boolean;
803
+ ContainsRVec3(inOther: RVec3): boolean;
804
+ OverlapsAABox(inOther: AABox): boolean;
805
+ OverlapsPlane(inOther: AABox): boolean;
806
+ TranslateVec3(inOther: Vec3): void;
807
+ TranslateRVec3(inOther: RVec3): void;
808
+ TransformedMat44(inOther: Mat44): AABox;
809
+ TransformedRMat44(inOther: RMat44): AABox;
810
+ Scaled(inScale: Vec3): AABox;
811
+ GetClosestPoint(inV: Vec3): Vec3;
812
+ GetSqDistanceTo(inV: Vec3): number;
676
813
  get_mMin(): Vec3;
677
814
  set_mMin(mMin: Vec3): void;
678
815
  mMin: Vec3;
679
816
  get_mMax(): Vec3;
680
817
  set_mMax(mMax: Vec3): void;
681
818
  mMax: Vec3;
682
- Overlaps(inOther: AABox): boolean;
683
819
  }
684
820
  class OrientedBox {
685
821
  constructor();
@@ -1019,6 +1155,7 @@ declare namespace Jolt {
1019
1155
  mDensity: number;
1020
1156
  }
1021
1157
  class ConvexShape extends Shape {
1158
+ SetMaterial(inMaterial: PhysicsMaterial): void;
1022
1159
  GetDensity(): number;
1023
1160
  SetDensity(inDensity: number): void;
1024
1161
  }
@@ -1203,7 +1340,8 @@ declare namespace Jolt {
1203
1340
  inPosition: Vec3,
1204
1341
  inRotation: Quat,
1205
1342
  inShape: Shape,
1206
- inUserData: number
1343
+ inUserData: number,
1344
+ inIndex?: number
1207
1345
  ): number;
1208
1346
  RemoveShape(inIndex: number): void;
1209
1347
  ModifyShape(inIndex: number, inPosition: Vec3, inRotation: Quat): void;
@@ -1405,6 +1543,7 @@ declare namespace Jolt {
1405
1543
  inMaterial?: PhysicsMaterial,
1406
1544
  inHalfExtent?: number
1407
1545
  );
1546
+ SetMaterial(inMaterial: PhysicsMaterial): void;
1408
1547
  GetPlane(): Plane;
1409
1548
  GetHalfExtent(): number;
1410
1549
  }
@@ -1449,6 +1588,8 @@ declare namespace Jolt {
1449
1588
  GetUserData(): number;
1450
1589
  SetUserData(inUserData: number): void;
1451
1590
  ResetWarmStart(): void;
1591
+ SaveState(inStream: StateRecorder): void;
1592
+ RestoreState(inStream: StateRecorder): void;
1452
1593
  }
1453
1594
  class TwoBodyConstraintSettings extends ConstraintSettings {
1454
1595
  Create(inBody1: Body, inBody2: Body): Constraint;
@@ -1936,6 +2077,9 @@ declare namespace Jolt {
1936
2077
  AddRef(): void;
1937
2078
  Release(): void;
1938
2079
  }
2080
+ class PathConstraintPathHermite extends PathConstraintPath {
2081
+ AddPoint(inPosition: Vec3, inTangent: Vec3, inNormal: Vec3): void;
2082
+ }
1939
2083
  class PathConstraintPathEm extends PathConstraintPath {}
1940
2084
  class PathConstraintPathJS extends PathConstraintPathEm {
1941
2085
  constructor();
@@ -2088,6 +2232,7 @@ declare namespace Jolt {
2088
2232
  GetInverseInertiaDiagonal(): Vec3;
2089
2233
  GetInertiaRotation(): Quat;
2090
2234
  SetInverseInertia(inInvI: Vec3, inRotation: Quat): void;
2235
+ ScaleToMass(inMass: number): void;
2091
2236
  GetLocalSpaceInverseInertia(): Mat44;
2092
2237
  GetInverseInertiaForRotation(inRotation: Mat44): Mat44;
2093
2238
  MultiplyWorldSpaceInverseInertiaByVector(inRotation: Quat, inV: Vec3): Vec3;
@@ -2211,22 +2356,31 @@ declare namespace Jolt {
2211
2356
  ): Vec3;
2212
2357
  GetUserData(): number;
2213
2358
  SetUserData(inUserData: number): void;
2359
+ SaveState(inStream: StateRecorder): void;
2360
+ RestoreState(inStream: StateRecorder): void;
2214
2361
  }
2362
+ class BodyInterface_AddState {}
2215
2363
  class BodyInterface {
2216
2364
  CreateBody(inSettings: BodyCreationSettings): Body;
2217
2365
  CreateSoftBody(inSettings: SoftBodyCreationSettings): Body;
2218
- CreateBodyWithID(inBodyID: BodyID, inSettings: BodyCreationSettings): void;
2366
+ CreateBodyWithID(inBodyID: BodyID, inSettings: BodyCreationSettings): Body;
2219
2367
  CreateSoftBodyWithID(
2220
2368
  inBodyID: BodyID,
2221
2369
  inSettings: SoftBodyCreationSettings
2222
- ): void;
2370
+ ): Body;
2223
2371
  CreateBodyWithoutID(inSettings: BodyCreationSettings): Body;
2224
2372
  CreateSoftBodyWithoutID(inSettings: SoftBodyCreationSettings): Body;
2225
2373
  DestroyBodyWithoutID(inBody: Body): void;
2226
2374
  AssignBodyID(ioBody: Body): boolean;
2227
2375
  AssignBodyID(ioBody: Body, inBodyID: BodyID): boolean;
2228
2376
  UnassignBodyID(inBodyID: BodyID): Body;
2377
+ UnassignBodyIDs(
2378
+ inBodyIDs: BodyIDMemRef,
2379
+ inNumber: number,
2380
+ outBodies: BodyPtrMemRef
2381
+ ): void;
2229
2382
  DestroyBody(inBodyID: BodyID): void;
2383
+ DestroyBodies(inBodyIDs: BodyIDMemRef, inNumber: number): void;
2230
2384
  AddBody(inBodyID: BodyID, inActivationMode: EActivation): void;
2231
2385
  RemoveBody(inBodyID: BodyID): void;
2232
2386
  IsAdded(inBodyID: BodyID): boolean;
@@ -2238,6 +2392,22 @@ declare namespace Jolt {
2238
2392
  inSettings: SoftBodyCreationSettings,
2239
2393
  inActivationMode: EActivation
2240
2394
  ): BodyID;
2395
+ AddBodiesPrepare(
2396
+ ioBodies: BodyIDMemRef,
2397
+ inNumber: number
2398
+ ): BodyInterface_AddState;
2399
+ AddBodiesFinalize(
2400
+ ioBodies: BodyIDMemRef,
2401
+ inNumber: number,
2402
+ inAddState: BodyInterface_AddState,
2403
+ inActivationMode: EActivation
2404
+ ): void;
2405
+ AddBodiesAbort(
2406
+ ioBodies: BodyIDMemRef,
2407
+ inNumber: number,
2408
+ inAddState: BodyInterface_AddState
2409
+ ): void;
2410
+ RemoveBodies(ioBodies: BodyIDMemRef, inNumber: number): void;
2241
2411
  CreateConstraint(
2242
2412
  inSettings: TwoBodyConstraintSettings,
2243
2413
  inBodyID1: BodyID,
@@ -2290,6 +2460,16 @@ declare namespace Jolt {
2290
2460
  GetRotation(inBodyID: BodyID): Quat;
2291
2461
  GetWorldTransform(inBodyID: BodyID): RMat44;
2292
2462
  GetCenterOfMassTransform(inBodyID: BodyID): RMat44;
2463
+ SetLinearAndAngularVelocity(
2464
+ inBodyID: BodyID,
2465
+ inLinearVelocity: Vec3,
2466
+ inAngularVelocity: Vec3
2467
+ ): void;
2468
+ GetLinearAndAngularVelocity(
2469
+ inBodyID: BodyID,
2470
+ outLinearVelocity: Vec3,
2471
+ outAngularVelocity: Vec3
2472
+ ): void;
2293
2473
  SetLinearVelocity(inBodyID: BodyID, inLinearVelocity: Vec3): void;
2294
2474
  GetLinearVelocity(inBodyID: BodyID): Vec3;
2295
2475
  AddLinearVelocity(inBodyID: BodyID, inLinearVelocity: Vec3): void;
@@ -2315,12 +2495,14 @@ declare namespace Jolt {
2315
2495
  inDeltaTime: number
2316
2496
  ): void;
2317
2497
  ActivateBody(inBodyID: BodyID): void;
2498
+ ActivateBodies(inBodyIDs: BodyIDMemRef, inNumber: number): void;
2318
2499
  ActivateBodiesInAABox(
2319
2500
  inBox: AABox,
2320
2501
  inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
2321
2502
  inObjectLayerFilter: ObjectLayerFilter
2322
2503
  ): void;
2323
2504
  DeactivateBody(inBodyID: BodyID): void;
2505
+ DeactivateBodies(inBodyIDs: BodyIDMemRef, inNumber: number): void;
2324
2506
  IsActive(inBodyID: BodyID): boolean;
2325
2507
  ResetSleepTimer(inBodyID: BodyID): void;
2326
2508
  GetBodyType(inBodyID: BodyID): EBodyType;
@@ -3083,6 +3265,18 @@ declare namespace Jolt {
3083
3265
  inBodyFilter: BodyFilter,
3084
3266
  inShapeFilter: ShapeFilter
3085
3267
  ): void;
3268
+ CollideShapeWithInternalEdgeRemoval(
3269
+ inShape: Shape,
3270
+ inShapeScale: Vec3,
3271
+ inCenterOfMassTransform: RMat44,
3272
+ inCollideShapeSettings: CollideShapeSettings,
3273
+ inBaseOffset: RVec3,
3274
+ ioCollector: CollideShapeCollector,
3275
+ inBroadPhaseLayerFilter: BroadPhaseLayerFilter,
3276
+ inObjectLayerFilter: ObjectLayerFilter,
3277
+ inBodyFilter: BodyFilter,
3278
+ inShapeFilter: ShapeFilter
3279
+ ): void;
3086
3280
  CastShape(
3087
3281
  inShapeCast: RShapeCast,
3088
3282
  inShapeCastSettings: ShapeCastSettings,
@@ -3176,6 +3370,8 @@ declare namespace Jolt {
3176
3370
  SetBodyActivationListener(inListener: BodyActivationListener): void;
3177
3371
  GetBodyActivationListener(): BodyActivationListener;
3178
3372
  WereBodiesInContact(inBodyID1: BodyID, inBodyID2: BodyID): boolean;
3373
+ SetSimShapeFilter(inShapeFilter: SimShapeFilter): void;
3374
+ GetSimShapeFilter(): SimShapeFilter;
3179
3375
  }
3180
3376
  class MassProperties {
3181
3377
  constructor();
@@ -3845,6 +4041,7 @@ declare namespace Jolt {
3845
4041
  }
3846
4042
  class CharacterVsCharacterCollision {}
3847
4043
  class CharacterVsCharacterCollisionSimple extends CharacterVsCharacterCollision {
4044
+ constructor();
3848
4045
  Add(inCharacter: CharacterVirtual): void;
3849
4046
  Remove(inCharacter: CharacterVirtual): void;
3850
4047
  }
@@ -3871,6 +4068,62 @@ declare namespace Jolt {
3871
4068
  set_mWalkStairsStepDownExtra(mWalkStairsStepDownExtra: Vec3): void;
3872
4069
  mWalkStairsStepDownExtra: Vec3;
3873
4070
  }
4071
+ class CharacterVirtualContact {
4072
+ IsSameBody(inOther: CharacterVirtualContact): boolean;
4073
+ get_mPosition(): RVec3;
4074
+ set_mPosition(mPosition: RVec3): void;
4075
+ mPosition: RVec3;
4076
+ get_mLinearVelocity(): Vec3;
4077
+ set_mLinearVelocity(mLinearVelocity: Vec3): void;
4078
+ mLinearVelocity: Vec3;
4079
+ get_mContactNormal(): Vec3;
4080
+ set_mContactNormal(mContactNormal: Vec3): void;
4081
+ mContactNormal: Vec3;
4082
+ get_mSurfaceNormal(): Vec3;
4083
+ set_mSurfaceNormal(mSurfaceNormal: Vec3): void;
4084
+ mSurfaceNormal: Vec3;
4085
+ get_mDistance(): number;
4086
+ set_mDistance(mDistance: number): void;
4087
+ mDistance: number;
4088
+ get_mFraction(): number;
4089
+ set_mFraction(mFraction: number): void;
4090
+ mFraction: number;
4091
+ get_mBodyB(): BodyID;
4092
+ set_mBodyB(mBodyB: BodyID): void;
4093
+ mBodyB: BodyID;
4094
+ get_mCharacterB(): CharacterVirtual;
4095
+ set_mCharacterB(mCharacterB: CharacterVirtual): void;
4096
+ mCharacterB: CharacterVirtual;
4097
+ get_mSubShapeIDB(): SubShapeID;
4098
+ set_mSubShapeIDB(mSubShapeIDB: SubShapeID): void;
4099
+ mSubShapeIDB: SubShapeID;
4100
+ get_mMotionTypeB(): EMotionType;
4101
+ set_mMotionTypeB(mMotionTypeB: EMotionType): void;
4102
+ mMotionTypeB: EMotionType;
4103
+ get_mIsSensorB(): boolean;
4104
+ set_mIsSensorB(mIsSensorB: boolean): void;
4105
+ mIsSensorB: boolean;
4106
+ get_mUserData(): number;
4107
+ set_mUserData(mUserData: number): void;
4108
+ mUserData: number;
4109
+ get_mMaterial(): PhysicsMaterial;
4110
+ set_mMaterial(mMaterial: PhysicsMaterial): void;
4111
+ mMaterial: PhysicsMaterial;
4112
+ get_mHadCollision(): boolean;
4113
+ set_mHadCollision(mHadCollision: boolean): void;
4114
+ mHadCollision: boolean;
4115
+ get_mWasDiscarded(): boolean;
4116
+ set_mWasDiscarded(mWasDiscarded: boolean): void;
4117
+ mWasDiscarded: boolean;
4118
+ get_mCanPushCharacter(): boolean;
4119
+ set_mCanPushCharacter(mCanPushCharacter: boolean): void;
4120
+ mCanPushCharacter: boolean;
4121
+ }
4122
+ class ArrayCharacterVirtualContact {
4123
+ empty(): boolean;
4124
+ size(): number;
4125
+ at(inIndex: number): CharacterVirtualContact;
4126
+ }
3874
4127
  class TempAllocator {}
3875
4128
  class BroadPhaseLayerFilter {
3876
4129
  constructor();
@@ -3940,6 +4193,20 @@ declare namespace Jolt {
3940
4193
  inSubShapeIDOfShape2: number
3941
4194
  ): boolean;
3942
4195
  }
4196
+ class SimShapeFilter {
4197
+ constructor();
4198
+ }
4199
+ class SimShapeFilterJS extends SimShapeFilter {
4200
+ constructor();
4201
+ ShouldCollide(
4202
+ inBody1: number,
4203
+ inShape1: number,
4204
+ inSubShapeIDOfShape1: number,
4205
+ inBody2: number,
4206
+ inShape2: number,
4207
+ inSubShapeIDOfShape2: number
4208
+ ): boolean;
4209
+ }
3943
4210
  class CharacterBase {
3944
4211
  GetRefCount(): number;
3945
4212
  AddRef(): void;
@@ -3957,6 +4224,8 @@ declare namespace Jolt {
3957
4224
  GetGroundVelocity(): Vec3;
3958
4225
  GetGroundMaterial(): PhysicsMaterial;
3959
4226
  GetGroundBodyID(): BodyID;
4227
+ SaveState(inStream: StateRecorder): void;
4228
+ RestoreState(inStream: StateRecorder): void;
3960
4229
  }
3961
4230
  class CharacterVirtual extends CharacterBase {
3962
4231
  constructor(
@@ -4056,6 +4325,9 @@ declare namespace Jolt {
4056
4325
  ): boolean;
4057
4326
  SetInnerBodyShape(inShape: Shape): void;
4058
4327
  GetTransformedShape(): TransformedShape;
4328
+ HasCollidedWith(inBodyID: BodyID): boolean;
4329
+ HasCollidedWithCharacter(inCharacter: CharacterVirtual): boolean;
4330
+ GetActiveContacts(): ArrayCharacterVirtualContact;
4059
4331
  }
4060
4332
  class LinearCurve {
4061
4333
  constructor();
@@ -4550,6 +4822,7 @@ declare namespace Jolt {
4550
4822
  GetRefCount(): number;
4551
4823
  AddRef(): void;
4552
4824
  Release(): void;
4825
+ GetConstraint(): VehicleConstraint;
4553
4826
  }
4554
4827
  class WheeledVehicleController extends VehicleController {
4555
4828
  constructor(
@@ -4665,6 +4938,8 @@ declare namespace Jolt {
4665
4938
  }
4666
4939
  class SkeletalAnimation {
4667
4940
  constructor();
4941
+ SetIsLooping(inLooping: boolean): void;
4942
+ IsLooping(): boolean;
4668
4943
  GetDuration(): number;
4669
4944
  ScaleJoints(inScale: number): void;
4670
4945
  Sample(inTime: number, ioPose: SkeletonPose): void;
@@ -4845,6 +5120,9 @@ declare namespace Jolt {
4845
5120
  get_mMaxContactConstraints(): number;
4846
5121
  set_mMaxContactConstraints(mMaxContactConstraints: number): void;
4847
5122
  mMaxContactConstraints: number;
5123
+ get_mMaxWorkerThreads(): number;
5124
+ set_mMaxWorkerThreads(mMaxWorkerThreads: number): void;
5125
+ mMaxWorkerThreads: number;
4848
5126
  get_mBroadPhaseLayerInterface(): BroadPhaseLayerInterface;
4849
5127
  set_mBroadPhaseLayerInterface(
4850
5128
  mBroadPhaseLayerInterface: BroadPhaseLayerInterface