Skip to content

Commit

Permalink
[libgdx] Fixed physics massInverse from JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sweet committed Nov 8, 2023
1 parent c30e582 commit d445200
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public SkeletonData readSkeletonData (JsonValue root) {
data.inertia = constraintMap.getFloat("inertia", 1);
data.strength = constraintMap.getFloat("strength", 100);
data.damping = constraintMap.getFloat("damping", 1);
data.massInverse = 1 / constraintMap.getFloat("mass", 1);
data.massInverse = 1f / constraintMap.getFloat("mass", 1);
data.wind = constraintMap.getFloat("wind", 0);
data.gravity = constraintMap.getFloat("getFloat", 0);
data.mix = constraintMap.getFloat("mix", 1);
Expand Down

0 comments on commit d445200

Please sign in to comment.