rhodonite 0.19.9 → 0.19.10

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 (144) hide show
  1. package/VERSION-FILE +1 -1
  2. package/dist/esm/effekseer/main.d.ts +3 -1
  3. package/dist/esm/foundation/components/Animation/AnimationComponent.d.ts +15 -1
  4. package/dist/esm/foundation/components/Animation/AnimationStateRepository.d.ts +26 -10
  5. package/dist/esm/foundation/components/AnimationState/AnimationStateComponent.d.ts +14 -0
  6. package/dist/esm/foundation/components/CharacterController/CharacterAnimationController.d.ts +63 -0
  7. package/dist/esm/foundation/components/CharacterController/CharacterControllerComponent.d.ts +67 -0
  8. package/dist/esm/foundation/components/CharacterController/ICharacterControllerEntity.d.ts +4 -0
  9. package/dist/esm/foundation/components/CharacterController/createCharacterControllerEntity.d.ts +4 -0
  10. package/dist/esm/foundation/components/CharacterController/index.d.ts +4 -0
  11. package/dist/esm/foundation/components/ComponentTypes.d.ts +6 -0
  12. package/dist/esm/foundation/components/Physics/PhysicsComponent.d.ts +27 -0
  13. package/dist/esm/foundation/components/SceneGraph/SceneGraphComponent.d.ts +30 -0
  14. package/dist/esm/foundation/components/Shape/IShapeEntity.d.ts +4 -0
  15. package/dist/esm/foundation/components/Shape/ShapeComponent.d.ts +43 -0
  16. package/dist/esm/foundation/components/Shape/createShapeEntity.d.ts +3 -0
  17. package/dist/esm/foundation/components/Shape/index.d.ts +3 -0
  18. package/dist/esm/foundation/components/Transform/TransformComponent.d.ts +2 -3
  19. package/dist/esm/foundation/components/Trigger/ITriggerEntity.d.ts +4 -0
  20. package/dist/esm/foundation/components/Trigger/TriggerComponent.d.ts +58 -0
  21. package/dist/esm/foundation/components/Trigger/index.d.ts +2 -0
  22. package/dist/esm/foundation/components/Vrm/VrmComponent.d.ts +16 -1
  23. package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +4 -1
  24. package/dist/esm/foundation/components/index.d.ts +3 -0
  25. package/dist/esm/foundation/core/Entity.d.ts +15 -0
  26. package/dist/esm/foundation/definitions/PhysicsShapeType.d.ts +1 -0
  27. package/dist/esm/foundation/definitions/ProcessApproach.d.ts +8 -4
  28. package/dist/esm/foundation/exporter/Gltf2ExporterOps.d.ts +2 -0
  29. package/dist/esm/foundation/geometry/Shape.d.ts +35 -0
  30. package/dist/esm/foundation/geometry/index.d.ts +1 -0
  31. package/dist/esm/foundation/geometry/shapes/Cylinder.d.ts +16 -0
  32. package/dist/esm/foundation/geometry/shapes/index.d.ts +1 -0
  33. package/dist/esm/foundation/gizmos/ShapeGizmo.d.ts +22 -0
  34. package/dist/esm/foundation/gizmos/index.d.ts +1 -0
  35. package/dist/esm/foundation/helpers/EntityHelper.d.ts +6 -0
  36. package/dist/esm/foundation/helpers/MeshHelper.d.ts +275 -15
  37. package/dist/esm/foundation/importer/AnimationAssigner.d.ts +62 -3
  38. package/dist/esm/foundation/importer/Gltf2Importer.d.ts +6 -0
  39. package/dist/esm/foundation/importer/KhrPhysicsImporter.d.ts +58 -0
  40. package/dist/esm/foundation/importer/VrmaImporter.d.ts +11 -3
  41. package/dist/esm/foundation/importer/index.d.ts +1 -0
  42. package/dist/esm/foundation/math/AnimatedQuaternion.d.ts +4 -0
  43. package/dist/esm/foundation/math/AnimatedScalar.d.ts +4 -0
  44. package/dist/esm/foundation/math/AnimatedVector2.d.ts +4 -0
  45. package/dist/esm/foundation/math/AnimatedVector3.d.ts +4 -0
  46. package/dist/esm/foundation/math/AnimatedVector4.d.ts +4 -0
  47. package/dist/esm/foundation/math/AnimatedVectorN.d.ts +4 -0
  48. package/dist/esm/foundation/math/IAnimatedValue.d.ts +12 -0
  49. package/dist/esm/foundation/math/MathUtil.d.ts +8 -1
  50. package/dist/esm/foundation/misc/MiscUtil.d.ts +79 -16
  51. package/dist/esm/foundation/misc/Time.d.ts +10 -1
  52. package/dist/esm/foundation/physics/CharacterControllerStrategy.d.ts +65 -0
  53. package/dist/esm/foundation/physics/Oimo/OimoPhysicsStrategy.d.ts +17 -1
  54. package/dist/esm/foundation/physics/PhysicsProperty.d.ts +43 -0
  55. package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +15 -0
  56. package/dist/esm/foundation/physics/PhysicsWorldQuery.d.ts +65 -0
  57. package/dist/esm/foundation/physics/Rapier/RapierCharacterControllerStrategy.d.ts +58 -0
  58. package/dist/esm/foundation/physics/Rapier/RapierPhysicsStrategy.d.ts +157 -19
  59. package/dist/esm/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.d.ts +11 -0
  60. package/dist/esm/foundation/physics/Rapier/index.d.ts +2 -0
  61. package/dist/esm/foundation/physics/ShapeTransformResolver.d.ts +19 -0
  62. package/dist/esm/foundation/physics/index.d.ts +2 -0
  63. package/dist/esm/index.js +498 -498
  64. package/dist/esm/types/AnimationTypes.d.ts +1 -1
  65. package/dist/esm/types/KHR_implicit_shapes.d.ts +47 -0
  66. package/dist/esm/types/KHR_physics_rigid_bodies.d.ts +54 -0
  67. package/dist/esm/types/VRMC.d.ts +12 -12
  68. package/dist/esm/types/VRMC_vrm_animation.d.ts +5 -0
  69. package/dist/esm/types/glTF2.d.ts +1 -0
  70. package/dist/esm/types/index.d.ts +2 -0
  71. package/dist/esm/webgl/main.d.ts +2 -1
  72. package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +12 -0
  73. package/dist/esmdev/effekseer/main.d.ts +3 -1
  74. package/dist/esmdev/foundation/components/Animation/AnimationComponent.d.ts +15 -1
  75. package/dist/esmdev/foundation/components/Animation/AnimationStateRepository.d.ts +26 -10
  76. package/dist/esmdev/foundation/components/AnimationState/AnimationStateComponent.d.ts +14 -0
  77. package/dist/esmdev/foundation/components/CharacterController/CharacterAnimationController.d.ts +63 -0
  78. package/dist/esmdev/foundation/components/CharacterController/CharacterControllerComponent.d.ts +67 -0
  79. package/dist/esmdev/foundation/components/CharacterController/ICharacterControllerEntity.d.ts +4 -0
  80. package/dist/esmdev/foundation/components/CharacterController/createCharacterControllerEntity.d.ts +4 -0
  81. package/dist/esmdev/foundation/components/CharacterController/index.d.ts +4 -0
  82. package/dist/esmdev/foundation/components/ComponentTypes.d.ts +6 -0
  83. package/dist/esmdev/foundation/components/Physics/PhysicsComponent.d.ts +27 -0
  84. package/dist/esmdev/foundation/components/SceneGraph/SceneGraphComponent.d.ts +30 -0
  85. package/dist/esmdev/foundation/components/Shape/IShapeEntity.d.ts +4 -0
  86. package/dist/esmdev/foundation/components/Shape/ShapeComponent.d.ts +43 -0
  87. package/dist/esmdev/foundation/components/Shape/createShapeEntity.d.ts +3 -0
  88. package/dist/esmdev/foundation/components/Shape/index.d.ts +3 -0
  89. package/dist/esmdev/foundation/components/Transform/TransformComponent.d.ts +2 -3
  90. package/dist/esmdev/foundation/components/Trigger/ITriggerEntity.d.ts +4 -0
  91. package/dist/esmdev/foundation/components/Trigger/TriggerComponent.d.ts +58 -0
  92. package/dist/esmdev/foundation/components/Trigger/index.d.ts +2 -0
  93. package/dist/esmdev/foundation/components/Vrm/VrmComponent.d.ts +16 -1
  94. package/dist/esmdev/foundation/components/WellKnownComponentTIDs.d.ts +4 -1
  95. package/dist/esmdev/foundation/components/index.d.ts +3 -0
  96. package/dist/esmdev/foundation/core/Entity.d.ts +15 -0
  97. package/dist/esmdev/foundation/definitions/PhysicsShapeType.d.ts +1 -0
  98. package/dist/esmdev/foundation/definitions/ProcessApproach.d.ts +8 -4
  99. package/dist/esmdev/foundation/exporter/Gltf2ExporterOps.d.ts +2 -0
  100. package/dist/esmdev/foundation/geometry/Shape.d.ts +35 -0
  101. package/dist/esmdev/foundation/geometry/index.d.ts +1 -0
  102. package/dist/esmdev/foundation/geometry/shapes/Cylinder.d.ts +16 -0
  103. package/dist/esmdev/foundation/geometry/shapes/index.d.ts +1 -0
  104. package/dist/esmdev/foundation/gizmos/ShapeGizmo.d.ts +22 -0
  105. package/dist/esmdev/foundation/gizmos/index.d.ts +1 -0
  106. package/dist/esmdev/foundation/helpers/EntityHelper.d.ts +6 -0
  107. package/dist/esmdev/foundation/helpers/MeshHelper.d.ts +275 -15
  108. package/dist/esmdev/foundation/importer/AnimationAssigner.d.ts +62 -3
  109. package/dist/esmdev/foundation/importer/Gltf2Importer.d.ts +6 -0
  110. package/dist/esmdev/foundation/importer/KhrPhysicsImporter.d.ts +58 -0
  111. package/dist/esmdev/foundation/importer/VrmaImporter.d.ts +11 -3
  112. package/dist/esmdev/foundation/importer/index.d.ts +1 -0
  113. package/dist/esmdev/foundation/math/AnimatedQuaternion.d.ts +4 -0
  114. package/dist/esmdev/foundation/math/AnimatedScalar.d.ts +4 -0
  115. package/dist/esmdev/foundation/math/AnimatedVector2.d.ts +4 -0
  116. package/dist/esmdev/foundation/math/AnimatedVector3.d.ts +4 -0
  117. package/dist/esmdev/foundation/math/AnimatedVector4.d.ts +4 -0
  118. package/dist/esmdev/foundation/math/AnimatedVectorN.d.ts +4 -0
  119. package/dist/esmdev/foundation/math/IAnimatedValue.d.ts +12 -0
  120. package/dist/esmdev/foundation/math/MathUtil.d.ts +8 -1
  121. package/dist/esmdev/foundation/misc/MiscUtil.d.ts +79 -16
  122. package/dist/esmdev/foundation/misc/Time.d.ts +10 -1
  123. package/dist/esmdev/foundation/physics/CharacterControllerStrategy.d.ts +65 -0
  124. package/dist/esmdev/foundation/physics/Oimo/OimoPhysicsStrategy.d.ts +17 -1
  125. package/dist/esmdev/foundation/physics/PhysicsProperty.d.ts +43 -0
  126. package/dist/esmdev/foundation/physics/PhysicsStrategy.d.ts +15 -0
  127. package/dist/esmdev/foundation/physics/PhysicsWorldQuery.d.ts +65 -0
  128. package/dist/esmdev/foundation/physics/Rapier/RapierCharacterControllerStrategy.d.ts +58 -0
  129. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsStrategy.d.ts +157 -19
  130. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.d.ts +11 -0
  131. package/dist/esmdev/foundation/physics/Rapier/index.d.ts +2 -0
  132. package/dist/esmdev/foundation/physics/ShapeTransformResolver.d.ts +19 -0
  133. package/dist/esmdev/foundation/physics/index.d.ts +2 -0
  134. package/dist/esmdev/index.js +15741 -10556
  135. package/dist/esmdev/types/AnimationTypes.d.ts +1 -1
  136. package/dist/esmdev/types/KHR_implicit_shapes.d.ts +47 -0
  137. package/dist/esmdev/types/KHR_physics_rigid_bodies.d.ts +54 -0
  138. package/dist/esmdev/types/VRMC.d.ts +12 -12
  139. package/dist/esmdev/types/VRMC_vrm_animation.d.ts +5 -0
  140. package/dist/esmdev/types/glTF2.d.ts +1 -0
  141. package/dist/esmdev/types/index.d.ts +2 -0
  142. package/dist/esmdev/webgl/main.d.ts +2 -1
  143. package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.d.ts +12 -0
  144. package/package.json +21 -21
package/VERSION-FILE CHANGED
@@ -1,2 +1,2 @@
1
- v0.19.9-0-g7ec4bedfb-dirty
1
+ v0.19.10-1-g2b33f7339-dirty
2
2
  main
@@ -3,7 +3,9 @@ import type { ITransformEntityMethods } from '../foundation/components/Transform
3
3
  import type { IEntity } from '../foundation/core/Entity';
4
4
  import type { Engine } from '../foundation/system/Engine';
5
5
  import { EffekseerComponent, type IEffekseerEntityMethods } from './EffekseerComponent';
6
+ declare const createEffekseerEntity: (engine: Engine) => IEntity & ITransformEntityMethods & ISceneGraphEntityMethods & IEffekseerEntityMethods;
6
7
  export declare const Effekseer: Readonly<{
7
8
  EffekseerComponent: typeof EffekseerComponent;
8
- createEffekseerEntity: (engine: Engine) => IEntity & ITransformEntityMethods & ISceneGraphEntityMethods & IEffekseerEntityMethods;
9
+ createEffekseerEntity: typeof createEffekseerEntity;
9
10
  }>;
11
+ export {};
@@ -61,6 +61,12 @@ export declare class AnimationComponent extends Component {
61
61
  * @param value - The blending ratio value between 0 and 1
62
62
  */
63
63
  set animationBlendingRatio(value: number);
64
+ /**
65
+ * Updates the animation blending ratio without evaluating animation channels immediately.
66
+ * @param value - The blending ratio value between 0 and 1
67
+ * @internal
68
+ */
69
+ _setAnimationBlendingRatioWithoutApplying(value: number): void;
64
70
  /**
65
71
  * Gets the current animation blending ratio.
66
72
  * @returns The blending ratio value between 0 and 1
@@ -251,6 +257,7 @@ export declare class AnimationComponent extends Component {
251
257
  * @returns The animation global info map for the engine
252
258
  */
253
259
  static getAnimationGlobalInfo(engine: Engine): Map<AnimationTrackName, AnimationInfo>;
260
+ private static __recalculateAnimationInfo;
254
261
  /**
255
262
  * Sets the animation state for the specified engine.
256
263
  * @param engine - The engine instance to set the animation state for
@@ -285,10 +292,11 @@ export declare class AnimationComponent extends Component {
285
292
  * Sets up animation retargeting from a source entity to this entity.
286
293
  * @param retarget - The retargeting interface that defines how to map animations
287
294
  * @param postfixToTrackName - Optional postfix to append to track names
295
+ * @param excludedPathNames - Animation paths to omit while copying source tracks
288
296
  * @returns An array of created track names
289
297
  * @private
290
298
  */
291
- _setRetarget(retarget: IAnimationRetarget, postfixToTrackName?: string): string[];
299
+ _setRetarget(retarget: IAnimationRetarget, postfixToTrackName?: string, excludedPathNames?: readonly AnimationPathName[]): string[];
292
300
  /**
293
301
  * Resets all animation tracks, clearing all animation data from this component.
294
302
  */
@@ -304,6 +312,12 @@ export declare class AnimationComponent extends Component {
304
312
  */
305
313
  resetAnimationTrackByPostfix(postfix: string): void;
306
314
  currentTrackFeatureHash(): number | undefined;
315
+ /**
316
+ * Gets the feature hash for a specific animation track.
317
+ * @param trackName - The animation track whose feature hash should be returned
318
+ * @returns The feature hash, or undefined when the track is not registered
319
+ */
320
+ getAnimationTrackFeatureHash(trackName: AnimationTrackName): number | undefined;
307
321
  /**
308
322
  * Destroys this component, cleaning up resources and clearing animation data.
309
323
  * @override
@@ -24,11 +24,17 @@ export declare class AnimationStateRepository {
24
24
  */
25
25
  private static __previousFrameCachedEntityUIDsMap;
26
26
  /**
27
- * Tracks the last frame's global time to detect frame transitions.
28
- * Used to trigger the swap of current/previous cached EntityUIDs.
27
+ * Process-frame tokens used to scope skinning-cache work to one Engine.process() call.
28
+ * These are intentionally separate from animation playback time: local-time animations
29
+ * may advance while the global animation clock remains unchanged.
30
+ */
31
+ private static __processFrameTokenMap;
32
+ private static __nextProcessFrameToken;
33
+ /**
34
+ * Tracks the last process-frame token that swapped cached EntityUID sets.
29
35
  * Managed per Engine instance for multi-engine support.
30
36
  */
31
- private static __lastCacheFrameGlobalTimeMap;
37
+ private static __lastCacheFrameTokenMap;
32
38
  /**
33
39
  * Maps each cache key to the EntityUID of its "leader" SkeletalComponent.
34
40
  * The leader is the first SkeletalComponent to compute skinning for a given cache key.
@@ -71,25 +77,35 @@ export declare class AnimationStateRepository {
71
77
  static getOrCreatePreviousFrameCachedEntityUIDs(engine: Engine): Set<EntityUID>;
72
78
  static setCurrentFrameCachedEntityUIDs(engine: Engine, set: Set<EntityUID>): void;
73
79
  static setPreviousFrameCachedEntityUIDs(engine: Engine, set: Set<EntityUID>): void;
74
- static getLastCacheFrameGlobalTime(engine: Engine): number;
75
- static setLastCacheFrameGlobalTime(engine: Engine, time: number): void;
80
+ /**
81
+ * Starts a new process frame for skinning-cache purposes.
82
+ * The token is globally unique so the static skinning cache cannot be shared across engines.
83
+ */
84
+ static beginProcessFrame(engine: Engine): number;
85
+ /**
86
+ * Gets the current process-frame token. A lazily-created token keeps manual component
87
+ * processing safe before the first Engine.process() call.
88
+ */
89
+ static getProcessFrameToken(engine: Engine): number;
90
+ static getLastCacheFrameToken(engine: Engine): number;
91
+ static setLastCacheFrameToken(engine: Engine, token: number): void;
76
92
  static getOrCreateCacheLeaders(engine: Engine): Map<string, EntityUID>;
77
93
  static getOrCreateLeaderJointIndexToEntityUID(engine: Engine): Map<number, EntityUID>;
78
94
  /**
79
95
  * Handles frame transition by swapping current/previous cached entity UIDs.
80
- * Should be called when a new frame starts (detected by globalTime change).
96
+ * Should be called when a new Engine.process() frame starts.
81
97
  * @param engine - The engine instance
82
- * @param currentGlobalTime - The current global time
98
+ * @param currentProcessFrameToken - The current Engine.process() frame token
83
99
  * @returns True if frame transition occurred, false otherwise
84
100
  */
85
- static handleFrameTransitionIfNeeded(engine: Engine, currentGlobalTime: number): boolean;
101
+ static handleFrameTransitionIfNeeded(engine: Engine, currentProcessFrameToken: number): boolean;
86
102
  /**
87
103
  * Handles frame transition and clears leader tracking.
88
104
  * Used by SkeletalComponent.isEntityCached which runs before SkeletalComponent.$logic.
89
105
  * @param engine - The engine instance
90
- * @param currentGlobalTime - The current global time
106
+ * @param currentProcessFrameToken - The current Engine.process() frame token
91
107
  */
92
- static handleFrameTransitionWithLeaderClear(engine: Engine, currentGlobalTime: number): void;
108
+ static handleFrameTransitionWithLeaderClear(engine: Engine, currentProcessFrameToken: number): void;
93
109
  /**
94
110
  * Checks if an entity's AnimationComponent can perform early return.
95
111
  *
@@ -68,12 +68,26 @@ export declare class AnimationStateComponent extends Component {
68
68
  * @param animationTrackName - The name of the animation track to set as active
69
69
  */
70
70
  setActiveAnimationTrack(animationTrackName: AnimationTrackName): void;
71
+ /**
72
+ * Rebinds a replaced first animation track without resetting the current blend.
73
+ * The logical current track is updated only when it referred to the replaced track.
74
+ * @param replacedAnimationTrackName - The name of the first track that was replaced
75
+ * @param replacementAnimationTrackName - The name of the replacement first track
76
+ */
77
+ replaceFirstActiveAnimationTrack(replacedAnimationTrackName: AnimationTrackName, replacementAnimationTrackName: AnimationTrackName): void;
71
78
  /**
72
79
  * Sets the second active animation track for blending purposes.
73
80
  * This track is used as the target during animation transitions.
74
81
  * @param animationTrackName - The name of the animation track to set as the second active track
75
82
  */
76
83
  setSecondActiveAnimationTrack(animationTrackName: AnimationTrackName): void;
84
+ /**
85
+ * Rebinds a replaced second animation track without restarting the current blend.
86
+ * The logical current track is updated only when it referred to the replaced track.
87
+ * @param replacedAnimationTrackName - The name of the second track that was replaced
88
+ * @param replacementAnimationTrackName - The name of the replacement second track
89
+ */
90
+ replaceSecondActiveAnimationTrack(replacedAnimationTrackName: AnimationTrackName, replacementAnimationTrackName: AnimationTrackName): void;
77
91
  /**
78
92
  * Sets whether animations should use global time for synchronization.
79
93
  * Applies the setting recursively to this entity and all its children.
@@ -0,0 +1,63 @@
1
+ import type { AnimationTrackName } from '../../../types/AnimationTypes';
2
+ import type { ISceneGraphEntity } from '../../helpers/EntityHelper';
3
+ import type { CharacterControllerComponent } from './CharacterControllerComponent';
4
+ export type CharacterAnimationSemantic = 'idle' | 'walk' | 'run' | 'jump' | 'fall' | 'landing' | 'slide';
5
+ export type CharacterAnimationMapping = Partial<Record<CharacterAnimationSemantic, readonly AnimationTrackName[]>>;
6
+ export interface CharacterAnimationControllerOptions {
7
+ walkSpeedThreshold?: number;
8
+ referenceWalkSpeed?: number;
9
+ runSpeedThreshold?: number;
10
+ referenceRunSpeed?: number;
11
+ minPlaybackSpeed?: number;
12
+ maxPlaybackSpeed?: number;
13
+ crossFadeDuration?: number;
14
+ }
15
+ export interface CharacterAnimationSelection {
16
+ semantic: CharacterAnimationSemantic;
17
+ requestedTrack?: AnimationTrackName;
18
+ activeTrack?: AnimationTrackName;
19
+ playbackSpeed: number;
20
+ isFallback: boolean;
21
+ hasTrack: boolean;
22
+ isOneShotPlaying: boolean;
23
+ }
24
+ /**
25
+ * Maps character movement state to animation tracks and controls playback transitions.
26
+ *
27
+ * When tracks come from external VRMA files, assign them to `animationRoot` before creating
28
+ * this controller. `AnimationAssigner.assignCharacterAnimationsWithVrma()` returns the
29
+ * `CharacterAnimationMapping` accepted by this constructor. Grounded locomotion uses the
30
+ * requested movement speed when it is available, so collision correction on steps does not
31
+ * repeatedly switch walk and run tracks.
32
+ */
33
+ export declare class CharacterAnimationController {
34
+ private readonly __characterController;
35
+ private readonly __animationRoot;
36
+ private readonly __options;
37
+ private readonly __mapping;
38
+ private readonly __availableTracks;
39
+ private readonly __animationState?;
40
+ private __selection;
41
+ private __playbackTime;
42
+ private __hasSelectedTrack;
43
+ private __oneShotEndTime?;
44
+ private __destroyed;
45
+ constructor(__characterController: CharacterControllerComponent, __animationRoot: ISceneGraphEntity, mapping?: CharacterAnimationMapping, options?: CharacterAnimationControllerOptions);
46
+ get selection(): CharacterAnimationSelection;
47
+ get availableTracks(): readonly AnimationTrackName[];
48
+ /**
49
+ * Applies an initial track immediately, without blending from the rest pose.
50
+ * Call this before the first `engine.process()` when a character should
51
+ * appear in a known pose from its first rendered frame.
52
+ */
53
+ initialize(semantic?: CharacterAnimationSemantic): void;
54
+ update(deltaTime: number): void;
55
+ destroy(): void;
56
+ private __resolveSemantic;
57
+ private __resolveTrack;
58
+ private __activateTrack;
59
+ private __resolvePlaybackSpeed;
60
+ private __getLocomotionSpeed;
61
+ private __collectAnimationTracks;
62
+ private __validateOptions;
63
+ }
@@ -0,0 +1,67 @@
1
+ import type { ComponentSID, ComponentTID, EntityUID } from '../../../types/CommonTypes';
2
+ import { Component } from '../../core/Component';
3
+ import type { IEntity } from '../../core/Entity';
4
+ import { type EntityRepository } from '../../core/EntityRepository';
5
+ import { type IVector3 } from '../../math';
6
+ import type { CharacterControllerOptions, CharacterControllerStrategy, CharacterGroundContact, CharacterMotionState } from '../../physics/CharacterControllerStrategy';
7
+ import type { Engine } from '../../system/Engine';
8
+ import { type EventSubscriberIndex } from '../../system/EventPubSub';
9
+ import type { ComponentToComponentMethods } from '../ComponentTypes';
10
+ export type CharacterControllerEventType = 'stateChanged' | 'landed';
11
+ export interface CharacterControllerStateChangedEvent {
12
+ type: 'stateChanged';
13
+ component: CharacterControllerComponent;
14
+ entity: IEntity;
15
+ previous: CharacterMotionState;
16
+ current: CharacterMotionState;
17
+ }
18
+ export interface CharacterControllerLandedEvent {
19
+ type: 'landed';
20
+ component: CharacterControllerComponent;
21
+ entity: IEntity;
22
+ impactSpeed: number;
23
+ groundContact?: CharacterGroundContact;
24
+ }
25
+ export type CharacterControllerEvent = CharacterControllerStateChangedEvent | CharacterControllerLandedEvent;
26
+ /** ECS component for a backend-neutral kinematic character controller. */
27
+ export declare class CharacterControllerComponent extends Component {
28
+ private __strategy?;
29
+ private readonly __zeroMovement;
30
+ private readonly __pubsub;
31
+ private __lastObservedMotionState;
32
+ private __desiredHorizontalSpeed?;
33
+ private __generatedShapeComponent?;
34
+ private __generatedShapeIndex?;
35
+ private __ownsGeneratedShapeComponent;
36
+ constructor(engine: Engine, entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository, isReUse: boolean);
37
+ static get componentTID(): 17;
38
+ get componentTID(): ComponentTID;
39
+ static common_$logic({ engine }: {
40
+ engine: Engine;
41
+ }): void;
42
+ $logic(): void;
43
+ setup(strategy: CharacterControllerStrategy, options?: CharacterControllerOptions): void;
44
+ setDesiredHorizontalVelocity(velocity: IVector3): void;
45
+ /**
46
+ * Horizontal speed requested through {@link setDesiredHorizontalVelocity}, before
47
+ * collision and step correction. It is undefined until a desired velocity is supplied.
48
+ */
49
+ get desiredHorizontalSpeed(): number | undefined;
50
+ requestJump(): void;
51
+ teleport(position: IVector3): void;
52
+ get isGrounded(): boolean;
53
+ get computedMovement(): IVector3;
54
+ /** Detailed ground information from the controller's foot probe. */
55
+ get groundContact(): CharacterGroundContact | undefined;
56
+ /** True during a frame where obstacle-stuck recovery adjusted movement. */
57
+ get isRecovering(): boolean;
58
+ get motionState(): CharacterMotionState;
59
+ subscribe(type: 'stateChanged', handler: (event: CharacterControllerStateChangedEvent) => void): EventSubscriberIndex;
60
+ subscribe(type: 'landed', handler: (event: CharacterControllerLandedEvent) => void): EventSubscriberIndex;
61
+ unsubscribe(type: CharacterControllerEventType, index: EventSubscriberIndex): void;
62
+ set enabled(value: boolean);
63
+ get enabled(): boolean;
64
+ _destroy(): void;
65
+ private __cleanupGeneratedShape;
66
+ addThisComponentToEntity<EntityBase extends IEntity, SomeComponentClass extends typeof Component>(base: EntityBase, _componentClass: SomeComponentClass): ComponentToComponentMethods<SomeComponentClass> & EntityBase;
67
+ }
@@ -0,0 +1,4 @@
1
+ import type { CharacterControllerComponent } from './CharacterControllerComponent';
2
+ export interface ICharacterControllerEntityMethods {
3
+ getCharacterController(): CharacterControllerComponent;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { Engine } from '../../system/Engine';
2
+ import type { IShapeEntityMethods } from '../Shape/IShapeEntity';
3
+ import type { ICharacterControllerEntityMethods } from './ICharacterControllerEntity';
4
+ export declare function createCharacterControllerEntity(engine: Engine): (import("../..").IEntity & import("..").ITransformEntityMethods & import("..").ISceneGraphEntityMethods & IShapeEntityMethods) & ICharacterControllerEntityMethods;
@@ -0,0 +1,4 @@
1
+ export * from './CharacterAnimationController';
2
+ export * from './CharacterControllerComponent';
3
+ export * from './createCharacterControllerEntity';
4
+ export * from './ICharacterControllerEntity';
@@ -6,6 +6,7 @@ import type { IAnimationStateEntityMethods } from './AnimationState';
6
6
  import type { IBlendShapeEntityMethods } from './BlendShape/IBlendShapeEntity';
7
7
  import type { ICameraEntityMethods } from './Camera/ICameraEntity';
8
8
  import type { ICameraControllerEntityMethods } from './CameraController/ICameraControllerEntity';
9
+ import type { ICharacterControllerEntityMethods } from './CharacterController/ICharacterControllerEntity';
9
10
  import type { IConstraintEntityMethods } from './Constraint/IConstraintEntity';
10
11
  import type { ILightEntityMethods } from './Light/ILightEntity';
11
12
  import type { IMeshEntityMethods } from './Mesh/IMeshEntity';
@@ -13,8 +14,10 @@ import type { IMeshRendererEntityMethods } from './MeshRenderer/IMeshRendererEnt
13
14
  import type { IPhysicsEntityMethods } from './Physics/IPhysicsEntity';
14
15
  import type { IRaymarchingEntityMethods } from './Raymarching/IRaymarchingEntity';
15
16
  import type { ISceneGraphEntityMethods } from './SceneGraph/ISceneGraphEntity';
17
+ import type { IShapeEntityMethods } from './Shape/IShapeEntity';
16
18
  import type { ISkeletalEntityMethods } from './Skeletal/ISkeletalEntity';
17
19
  import type { ITransformEntityMethods } from './Transform/ITransformEntity';
20
+ import type { ITriggerEntityMethods } from './Trigger/ITriggerEntity';
18
21
  import type { IVrmEntityMethods } from './Vrm/IVrmEntity';
19
22
  import { WellKnownComponentTIDs } from './WellKnownComponentTIDs';
20
23
  export type ComponentMixinFunction = <EntityBaseClass extends MixinBase>(baseClass: EntityBaseClass, components: (typeof Component)[]) => {
@@ -42,6 +45,9 @@ interface ComponentTIDToMethodsMap {
42
45
  [WellKnownComponentTIDs.VrmComponentTID]: IVrmEntityMethods;
43
46
  [WellKnownComponentTIDs.ConstraintComponentTID]: IConstraintEntityMethods;
44
47
  [WellKnownComponentTIDs.RaymarchingComponentTID]: IRaymarchingEntityMethods;
48
+ [WellKnownComponentTIDs.CharacterControllerComponentTID]: ICharacterControllerEntityMethods;
49
+ [WellKnownComponentTIDs.ShapeComponentTID]: IShapeEntityMethods;
50
+ [WellKnownComponentTIDs.TriggerComponentTID]: ITriggerEntityMethods;
45
51
  }
46
52
  /**
47
53
  * Maps a Component class to its corresponding EntityMethods interface.
@@ -2,9 +2,17 @@ import type { ComponentSID, ComponentTID, EntityUID } from '../../../types/Commo
2
2
  import { Component } from '../../core/Component';
3
3
  import type { IEntity } from '../../core/Entity';
4
4
  import { type EntityRepository } from '../../core/EntityRepository';
5
+ import type { PhysicsBodyProperty, PhysicsColliderProperty, PhysicsMotionProperty } from '../../physics/PhysicsProperty';
5
6
  import type { PhysicsStrategy } from '../../physics/PhysicsStrategy';
6
7
  import type { Engine } from '../../system/Engine';
7
8
  import type { ComponentToComponentMethods } from '../ComponentTypes';
9
+ import type { ShapeComponent } from '../Shape/ShapeComponent';
10
+ export type PhysicsShapeBinding = {
11
+ shapeComponent: ShapeComponent;
12
+ shapeIndex?: number;
13
+ body: PhysicsBodyProperty;
14
+ collider: PhysicsColliderProperty;
15
+ };
8
16
  /**
9
17
  * PhysicsComponent is a component that manages the physics simulation for an entity.
10
18
  * It provides integration with physics engines through the strategy pattern and handles
@@ -12,6 +20,9 @@ import type { ComponentToComponentMethods } from '../ComponentTypes';
12
20
  */
13
21
  export declare class PhysicsComponent extends Component {
14
22
  private __strategy?;
23
+ private __shapeBindings;
24
+ private __nextShapeBindingId;
25
+ private __motion?;
15
26
  /**
16
27
  * Creates a new PhysicsComponent instance.
17
28
  * @param engine - The engine instance
@@ -42,6 +53,22 @@ export declare class PhysicsComponent extends Component {
42
53
  * @returns The physics strategy instance, or undefined if none is set
43
54
  */
44
55
  get strategy(): PhysicsStrategy | undefined;
56
+ /** Sets properties shared by the complete rigid body and rebuilds its colliders. */
57
+ setMotionProperty(motion: PhysicsMotionProperty): void;
58
+ get motionProperty(): PhysicsMotionProperty | undefined;
59
+ /** Adds one generic ShapeComponent instance to this physical body. */
60
+ bindShape(binding: PhysicsShapeBinding): number;
61
+ updateShapeBinding(bindingId: number, binding: PhysicsShapeBinding): void;
62
+ removeShapeBinding(bindingId: number): boolean;
63
+ clearShapeBindings(): void;
64
+ rebuildShapeBindings(): void;
65
+ get shapeBindingCount(): number;
66
+ private __applyShapeBindingsTransaction;
67
+ private __applyShapeBindings;
68
+ private __applyBackendUpdate;
69
+ private static __copyBinding;
70
+ private __unregisterSensorBindings;
71
+ private static __copyMotion;
45
72
  getVrmSpring(): import("../..").VRMSpring | undefined;
46
73
  /**
47
74
  * Common logic method that updates the global physics simulation.
@@ -27,6 +27,7 @@ export declare class SceneGraphComponent extends Component {
27
27
  private __parent?;
28
28
  private __children;
29
29
  private __gizmoChildren;
30
+ private __physicsComponentCountInSubtree;
30
31
  private _worldMatrix;
31
32
  private _worldMatrixRest;
32
33
  private _normalMatrix;
@@ -53,6 +54,9 @@ export declare class SceneGraphComponent extends Component {
53
54
  jointIndex: number;
54
55
  _isCulled: boolean;
55
56
  private static readonly __originVector3;
57
+ private static readonly __axisX;
58
+ private static readonly __axisY;
59
+ private static readonly __axisZ;
56
60
  private static returnVector3;
57
61
  private static __sceneGraphs;
58
62
  private static invertedMatrix44;
@@ -264,6 +268,25 @@ export declare class SceneGraphComponent extends Component {
264
268
  get matrix(): MutableMatrix44;
265
269
  setMatrixWithoutPhysics(matrix: IMatrix44): void;
266
270
  setMatrixToPhysics(matrix: IMatrix44): void;
271
+ private __setMatrixToOwnPhysics;
272
+ private __syncDescendantPhysicsTransforms;
273
+ private __syncPhysicsTransformRecursively;
274
+ /**
275
+ * Records that this entity acquired a PhysicsComponent.
276
+ * @internal
277
+ */
278
+ _onPhysicsComponentAdded(): void;
279
+ /**
280
+ * Records that this entity lost its PhysicsComponent.
281
+ * @internal
282
+ */
283
+ _onPhysicsComponentRemoved(): void;
284
+ /**
285
+ * Returns whether this node or one of its descendants has a PhysicsComponent.
286
+ * @internal
287
+ */
288
+ get _hasPhysicsComponentInSubtree(): boolean;
289
+ private __adjustPhysicsComponentCountInSubtree;
267
290
  set matrix(matrix: MutableMatrix44);
268
291
  /**
269
292
  * Gets the internal world matrix in rest pose (mutable reference).
@@ -478,6 +501,7 @@ export declare class SceneGraphComponent extends Component {
478
501
  * @param quat - The quaternion rotation to set in physics
479
502
  */
480
503
  setRotationToPhysics(quat: IQuaternion): void;
504
+ private __syncPhysicsTransformsAfterRotation;
481
505
  /**
482
506
  * Updates the cached world rotation if it is dirty.
483
507
  * This avoids repeated recursive traversal across the hierarchy.
@@ -521,6 +545,12 @@ export declare class SceneGraphComponent extends Component {
521
545
  * @returns The world scale vector
522
546
  */
523
547
  get scale(): MutableVector3;
548
+ /**
549
+ * Resolves world-scale magnitudes with signs relative to the entity's proper world rotation.
550
+ * Physics bodies use that rotation separately, so reflected local offsets need these signs.
551
+ * @internal
552
+ */
553
+ _getPhysicsWorldScale(matrix?: IMatrix44): Vector3;
524
554
  /**
525
555
  * Creates a shallow copy of a child scene graph component.
526
556
  * @param child - The child component to copy
@@ -0,0 +1,4 @@
1
+ import type { ShapeComponent } from './ShapeComponent';
2
+ export interface IShapeEntityMethods {
3
+ getShape(): ShapeComponent;
4
+ }
@@ -0,0 +1,43 @@
1
+ import type { ComponentSID, ComponentTID, EntityUID } from '../../../types/CommonTypes';
2
+ import { Component } from '../../core/Component';
3
+ import type { IEntity } from '../../core/Entity';
4
+ import { type EntityRepository } from '../../core/EntityRepository';
5
+ import { type ShapeDescriptor, type ShapeInstance, type ShapeLocalTransform } from '../../geometry/Shape';
6
+ import { ShapeGizmo } from '../../gizmos/ShapeGizmo';
7
+ import type { AABB } from '../../math/AABB';
8
+ import type { IVector3 } from '../../math/IVector';
9
+ import type { Engine } from '../../system/Engine';
10
+ import type { ComponentToComponentMethods } from '../ComponentTypes';
11
+ /** Stores lightweight analytic shapes independently from their consumers. */
12
+ export declare class ShapeComponent extends Component {
13
+ private __shapes;
14
+ private __nextShapeIndex;
15
+ private __shapeGizmo?;
16
+ constructor(engine: Engine, entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository, isReUse: boolean);
17
+ static get componentTID(): 18;
18
+ get componentTID(): ComponentTID;
19
+ addShape(descriptor: ShapeDescriptor, localTransform?: ShapeLocalTransform): number;
20
+ /** Fits a foot-to-head capsule to an AABB and returns its new shape index. */
21
+ addCapsuleFromAabb(aabb: AABB, options?: CapsuleFromAabbOptions): number;
22
+ getShape(index?: number): ShapeInstance | undefined;
23
+ removeShape(index: number): boolean;
24
+ clearShapes(): void;
25
+ get shapeCount(): number;
26
+ /** @internal Iterates stable shape indices and their instances. */
27
+ _getShapeEntries(): IterableIterator<[number, ShapeInstance]>;
28
+ $logic(): void;
29
+ set isShapeGizmoVisible(visible: boolean);
30
+ get isShapeGizmoVisible(): boolean;
31
+ get shapeGizmo(): ShapeGizmo | undefined;
32
+ /** @internal Copies immutable ShapeInstances while preserving their stable indices. */
33
+ _shallowCopyFrom(component_: Component): void;
34
+ _destroy(): void;
35
+ addThisComponentToEntity<EntityBase extends IEntity, SomeComponentClass extends typeof Component>(base: EntityBase, _componentClass: SomeComponentClass): ComponentToComponentMethods<SomeComponentClass> & EntityBase;
36
+ }
37
+ export interface CapsuleFromAabbOptions {
38
+ /** Origin expressed in the same coordinates as the AABB. */
39
+ origin?: IVector3;
40
+ radiusScale?: number;
41
+ /** Maximum radius as a fraction of AABB height. Must be below 0.5. */
42
+ maxRadiusToHeightRatio?: number;
43
+ }
@@ -0,0 +1,3 @@
1
+ import type { Engine } from '../../system/Engine';
2
+ import type { IShapeEntityMethods } from './IShapeEntity';
3
+ export declare function createShapeEntity(engine: Engine): import("../..").ISceneGraphEntity & IShapeEntityMethods;
@@ -0,0 +1,3 @@
1
+ export * from './createShapeEntity';
2
+ export * from './IShapeEntity';
3
+ export * from './ShapeComponent';
@@ -9,7 +9,6 @@ import type { MutableMatrix44 } from '../../math/MutableMatrix44';
9
9
  import type { MutableVector3 } from '../../math/MutableVector3';
10
10
  import { Quaternion } from '../../math/Quaternion';
11
11
  import { Transform3D } from '../../math/Transform3D';
12
- import { Vector3 } from '../../math/Vector3';
13
12
  import type { Engine } from '../../system/Engine';
14
13
  import type { ComponentToComponentMethods } from '../ComponentTypes';
15
14
  /**
@@ -145,7 +144,7 @@ export declare class TransformComponent extends Component {
145
144
  * Gets the internal mutable local Euler angles vector.
146
145
  * @returns The internal mutable Euler angles vector
147
146
  */
148
- get localEulerAnglesInner(): Vector3;
147
+ get localEulerAnglesInner(): import("../..").Vector3;
149
148
  /**
150
149
  * Sets the local Euler angles as rest pose.
151
150
  * @param vec - The Euler angles vector to set as rest (XYZ order)
@@ -160,7 +159,7 @@ export declare class TransformComponent extends Component {
160
159
  * Gets the internal mutable local Euler angles rest vector.
161
160
  * @returns The internal mutable rest Euler angles vector
162
161
  */
163
- get localEulerAnglesRestInner(): Vector3;
162
+ get localEulerAnglesRestInner(): import("../..").Vector3;
164
163
  /**
165
164
  * Sets the local scale and updates physics if applicable.
166
165
  * @param vec - The new scale vector
@@ -0,0 +1,4 @@
1
+ import type { TriggerComponent } from './TriggerComponent';
2
+ export interface ITriggerEntityMethods {
3
+ getTrigger(): TriggerComponent;
4
+ }
@@ -0,0 +1,58 @@
1
+ import type { ComponentSID, ComponentTID, EntityUID } from '../../../types/CommonTypes';
2
+ import { Component } from '../../core/Component';
3
+ import type { IEntity } from '../../core/Entity';
4
+ import { type EntityRepository } from '../../core/EntityRepository';
5
+ import type { Engine } from '../../system/Engine';
6
+ import { type EventSubscriberIndex } from '../../system/EventPubSub';
7
+ import type { ComponentToComponentMethods } from '../ComponentTypes';
8
+ export type TriggerEventType = 'enter' | 'stay' | 'exit';
9
+ export interface TriggerEvent {
10
+ type: TriggerEventType;
11
+ triggerComponent: TriggerComponent;
12
+ triggerEntity: IEntity;
13
+ otherEntity: IEntity;
14
+ sensorBindingId: number;
15
+ otherBindingId?: number;
16
+ }
17
+ /** Groups one or more physics sensors into a logical trigger volume. */
18
+ export declare class TriggerComponent extends Component {
19
+ private static __sensorOwners;
20
+ private static __components;
21
+ private static __physicsSteps;
22
+ private static __fallbackPhysicsStep;
23
+ private __pubsub;
24
+ private __sensorKeys;
25
+ private __activeOverlaps;
26
+ constructor(engine: Engine, entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository, isReUse: boolean);
27
+ static get componentTID(): 19;
28
+ get componentTID(): ComponentTID;
29
+ subscribe(type: TriggerEventType, handler: (event: TriggerEvent) => void): EventSubscriberIndex;
30
+ unsubscribe(type: TriggerEventType, index: EventSubscriberIndex): void;
31
+ get activeOverlapCount(): number;
32
+ /** @internal Associates a PhysicsComponent binding with this logical trigger. */
33
+ _registerSensorBinding(physicsEntityUid: EntityUID, bindingId: number): void;
34
+ /** @internal Removes ownership when a sensor binding is permanently deleted. */
35
+ static _unregisterSensorBinding(engine: Engine, physicsEntityUid: EntityUID, sensorBindingId: number): void;
36
+ /** @internal Called by the Rapier event bridge. */
37
+ static _processOverlap(engine: Engine, sensorEntityUid: EntityUID, sensorBindingId: number, otherEntity: IEntity, otherBindingId: number | undefined, started: boolean, otherColliderHandle?: number): void;
38
+ /** @internal Starts reconciliation of collider pairs suspended before this physics step. */
39
+ static _beginPhysicsStep(engine?: Engine): void;
40
+ /** @internal Ends suspended overlaps that were not restored by the current physics step. */
41
+ static _finalizeRebuiltOverlaps(engine?: Engine): void;
42
+ /** @internal Emits one Stay event per active logical overlap after each physics step. */
43
+ static _publishStayEvents(engine?: Engine): void;
44
+ /** @internal Temporarily suspends overlaps owned by a sensor collider that is being rebuilt. */
45
+ static _suspendSensorBinding(engine: Engine, physicsEntityUid: EntityUID, sensorBindingId: number): void;
46
+ /** @internal Temporarily suspends overlaps in which a collider being rebuilt is the non-owning side. */
47
+ static _suspendOtherBinding(otherEntity: IEntity, otherBindingId: number | undefined, otherColliderHandle?: number): void;
48
+ /** @internal Ends overlaps owned by a sensor collider that is being permanently removed. */
49
+ static _deactivateSensorBinding(engine: Engine, physicsEntityUid: EntityUID, sensorBindingId: number): void;
50
+ /** @internal Ends overlaps in which a collider being removed is the non-owning side. */
51
+ static _deactivateOtherBinding(otherEntity: IEntity, otherBindingId: number | undefined, otherColliderHandle?: number): void;
52
+ private __publish;
53
+ private static __sensorKey;
54
+ private static __getPhysicsStep;
55
+ private static __matchesOtherBinding;
56
+ _destroy(): void;
57
+ addThisComponentToEntity<EntityBase extends IEntity, SomeComponentClass extends typeof Component>(base: EntityBase, _componentClass: SomeComponentClass): ComponentToComponentMethods<SomeComponentClass> & EntityBase;
58
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ITriggerEntity';
2
+ export * from './TriggerComponent';
@@ -51,11 +51,26 @@ export declare class VrmComponent extends Component {
51
51
  setVrmExpressions(expressions: VrmExpression[]): void;
52
52
  /**
53
53
  * Sets the weight for a specific VRM expression.
54
- * This method updates the expression weight and applies it to all associated blend shape binds.
54
+ * This method clamps the input, applies binary-expression behavior, and updates
55
+ * all associated blend shape binds using the accumulated contribution from every expression.
55
56
  * @param expressionName - The name of the expression to modify
56
57
  * @param weight - The weight value to apply (typically between 0 and 1)
57
58
  */
58
59
  setExpressionWeight(expressionName: VrmExpressionName, weight: number): void;
60
+ /**
61
+ * Sets multiple VRM expression weights and updates morph targets in one pass.
62
+ * This is used when several expression animation channels are evaluated together.
63
+ * @param expressionWeights - Expression names and their evaluated weights
64
+ */
65
+ setExpressionWeights(expressionWeights: ReadonlyMap<VrmExpressionName, number>): void;
66
+ private __setExpressionWeight;
67
+ /**
68
+ * Recomputes morph target weights from all expression contributions.
69
+ *
70
+ * Multiple VRM expressions may bind the same morph target. Applying each expression directly
71
+ * would make the result depend on map insertion order, so contributions are accumulated first.
72
+ */
73
+ private __applyExpressionWeightsToMorphTargets;
59
74
  /**
60
75
  * Gets the current weight of a specific VRM expression.
61
76
  * @param expressionName - The name of the expression to query