Skip to content

Commit

Permalink
Merge pull request #95 from LeXXik/gravity-vec
Browse files Browse the repository at this point in the history
Gravity vec
  • Loading branch information
LeXXik authored Sep 25, 2024
2 parents b7862a5 + 2d71e93 commit 675550a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physics/jolt/back/operators/modifier.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ class Modifier {
}

_changeGravity(cb) {
const jv = this._joltVec3;
const jv = this._joltVec3_1;

jv.FromBuffer(cb);

try {
this._backend.system.SetGravity(jv);
this._backend.physicsSystem.SetGravity(jv);
} catch (e) {
if ($_DEBUG) {
Debug.error(e);
Expand Down

0 comments on commit 675550a

Please sign in to comment.