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 +1 -1
- package/package.json +1 -1
- package/src/model.ts +1 -1
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
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
|
}
|