Skip to content

Commit

Permalink
Merge pull request #93 from LeXXik/char-motion-state
Browse files Browse the repository at this point in the history
Fix char motion state
  • Loading branch information
LeXXik authored Sep 23, 2024
2 parents 7c513ca + 6a151fd commit f09247f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/physics/jolt/back/operators/helpers/char-modifier.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ class CharModifier {
jq.FromBuffer(cb);
char.SetRotation(jq);
}
const ms = char.motionState;
if (ms) {
ms.updatePosition();
ms.updateRotation();
}
} catch (e) {
if ($_DEBUG) {
Debug.error(e);
Expand Down

0 comments on commit f09247f

Please sign in to comment.