Skip to content

Commit

Permalink
fix com issue in jolt
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamakaio committed Sep 27, 2024
1 parent ff09a80 commit ddff6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adera_app/features/jolt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ static void rocket_thrust_force(BodyId const bodyId, ACtxJoltWorld const& rJolt,

JPH::BodyID joltBodyId = BToJolt(bodyId);
Quaternion const rot = QuatJoltToMagnum(bodyInterface.GetRotation(joltBodyId));
RVec3 joltCOM = bodyInterface.GetCenterOfMassPosition(joltBodyId) - bodyInterface.GetPosition(joltBodyId);
RVec3 joltCOM = bodyInterface.GetPosition(joltBodyId) - bodyInterface.GetCenterOfMassPosition(joltBodyId);
Vector3 com = Vec3JoltToMagnum(joltCOM);

for (BodyRocket const& bodyRocket : rBodyRockets)
Expand Down

0 comments on commit ddff6d7

Please sign in to comment.