mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[csharp] Apply skeleton.scaleX/scaleY to wind and gravity. See #2729. Port of commit 5a71b51.
This commit is contained in:
parent
06f6e1473c
commit
89441caabd
@ -175,7 +175,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
if (a >= t) {
|
if (a >= t) {
|
||||||
d = (float)Math.Pow(damping, 60 * t);
|
d = (float)Math.Pow(damping, 60 * t);
|
||||||
float m = massInverse * t, e = strength, w = wind * f, g = (Bone.yDown ? -gravity : gravity) * f;
|
float m = massInverse * t, e = strength, w = wind * f * skeleton.ScaleX, g = (Bone.yDown ? -gravity : gravity) * f * skeleton.ScaleY;
|
||||||
do {
|
do {
|
||||||
if (x) {
|
if (x) {
|
||||||
xVelocity += (w - xOffset * e) * m;
|
xVelocity += (w - xOffset * e) * m;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-csharp",
|
"name": "com.esotericsoftware.spine.spine-csharp",
|
||||||
"displayName": "spine-csharp Runtime",
|
"displayName": "spine-csharp Runtime",
|
||||||
"description": "This plugin provides the spine-csharp core runtime.",
|
"description": "This plugin provides the spine-csharp core runtime.",
|
||||||
"version": "4.2.33",
|
"version": "4.2.34",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user