reze-engine 0.3.7 → 0.3.8

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.
package/dist/model.js CHANGED
@@ -583,7 +583,7 @@ export class Model {
583
583
  // Compute world matrices after applying pose
584
584
  this.computeWorldMatrices();
585
585
  // Reset physics when starting animation (prevents instability from sudden pose changes)
586
- if (this.physics) {
586
+ if (this.physics && this.animationTime === 0) {
587
587
  this.physics.reset(this.runtimeSkeleton.worldMatrices, this.skeleton.inverseBindMatrices);
588
588
  }
589
589
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reze-engine",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "A WebGPU-based MMD model renderer",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/model.ts CHANGED
@@ -887,7 +887,7 @@ export class Model {
887
887
  this.computeWorldMatrices()
888
888
 
889
889
  // Reset physics when starting animation (prevents instability from sudden pose changes)
890
- if (this.physics) {
890
+ if (this.physics && this.animationTime === 0) {
891
891
  this.physics.reset(this.runtimeSkeleton.worldMatrices, this.skeleton.inverseBindMatrices)
892
892
  }
893
893
  }