Skip to content

Commit

Permalink
[csharp][monogame] Fixed yDown branch of previous commit 89441ca lead…
Browse files Browse the repository at this point in the history
…ing to upward gravity. See #2729.
  • Loading branch information
HaraldCsaszar committed Feb 5, 2025
1 parent dcf19f7 commit 095a5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-csharp/src/PhysicsConstraint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void Update (Physics physics) {
}
if (a >= t) {
d = (float)Math.Pow(damping, 60 * t);
float m = massInverse * t, e = strength, w = wind * f * skeleton.ScaleX, g = (Bone.yDown ? -gravity : gravity) * f * skeleton.ScaleY;
float m = massInverse * t, e = strength, w = wind * f * skeleton.ScaleX, g = gravity * f * skeleton.ScaleY;
do {
if (x) {
xVelocity += (w - xOffset * e) * m;
Expand Down

0 comments on commit 095a5d4

Please sign in to comment.