mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[csharp][monogame] Fixed yDown branch of previous commit 89441ca leading to upward gravity. See #2729.
This commit is contained in:
parent
dcf19f7021
commit
095a5d43e4
@ -175,7 +175,7 @@ namespace Spine {
|
||||
}
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user