[libgdx] PhysicsConstraint, fixed incorrect subtraction.

This commit is contained in:
Nathan Sweet 2025-09-11 13:46:44 -06:00
parent 3b02a3fbab
commit 48355c2e71

View File

@ -197,7 +197,7 @@ public class PhysicsConstraint extends Constraint<PhysicsConstraint, PhysicsCons
m = t * p.massInverse;
e = p.strength;
}
float ax = p.wind * skeleton.windX - p.gravity * skeleton.gravityX;
float ax = p.wind * skeleton.windX + p.gravity * skeleton.gravityX;
float ay = p.wind * skeleton.windY + p.gravity * skeleton.gravityY;
float rs = rotateOffset, ss = scaleOffset, h = l / f;
while (true) {