mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
[haxe] Apply skeleton.scaleX/scaleY to wind and gravity. See #2729.
This commit is contained in:
parent
7e1de838d2
commit
59c47a2c02
@ -158,8 +158,8 @@ class PhysicsConstraint implements Updatable {
|
||||
d = Math.pow(damping, 60 * t);
|
||||
var m:Float = massInverse * t,
|
||||
e:Float = strength,
|
||||
w:Float = wind * f,
|
||||
g:Float = (Bone.yDown ? -gravity : gravity) * f;
|
||||
w:Float = wind * f * skeleton.scaleX,
|
||||
g:Float = (Bone.yDown ? -gravity : gravity) * f * skeleton.scaleY;
|
||||
do {
|
||||
if (x) {
|
||||
xVelocity += (w - xOffset * e) * m;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user