mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[haxe] Fixed yDown branch of previous commit 89441ca leading to upward gravity. See #2729.
This commit is contained in:
parent
f854a33b58
commit
1d1a6801d5
@ -159,7 +159,7 @@ class PhysicsConstraint implements Updatable {
|
||||
var m:Float = massInverse * t,
|
||||
e:Float = strength,
|
||||
w:Float = wind * f * skeleton.scaleX,
|
||||
g:Float = (Bone.yDown ? -gravity : gravity) * f * skeleton.scaleY;
|
||||
g:Float = gravity * f * skeleton.scaleY;
|
||||
do {
|
||||
if (x) {
|
||||
xVelocity += (w - xOffset * e) * m;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user