mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts] 4.3 porting WIP.
This commit is contained in:
parent
651a897724
commit
1ec1d23b7f
@ -215,9 +215,10 @@ export class PhysicsConstraint extends Constraint<PhysicsConstraint, PhysicsCons
|
|||||||
m = t * p.massInverse;
|
m = t * p.massInverse;
|
||||||
e = p.strength;
|
e = p.strength;
|
||||||
}
|
}
|
||||||
|
var g = Skeleton.yDown ? -p.gravity : p.gravity;
|
||||||
let rs = this.rotateOffset, ss = this.scaleOffset, h = l / f,
|
let rs = this.rotateOffset, ss = this.scaleOffset, h = l / f,
|
||||||
ax = p.wind * skeleton.windX + p.gravity * skeleton.gravityX,
|
ax = p.wind * skeleton.windX + g * skeleton.gravityX,
|
||||||
ay = p.wind * skeleton.windY + p.gravity * skeleton.gravityY;
|
ay = p.wind * skeleton.windY + g * skeleton.gravityY;
|
||||||
while (true) {
|
while (true) {
|
||||||
a -= t;
|
a -= t;
|
||||||
if (scaleX) {
|
if (scaleX) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user