mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Formatting
This commit is contained in:
parent
e623140c99
commit
120577bfe6
@ -74,4 +74,3 @@ void InheritTimeline::apply(Skeleton &skeleton, float lastTime, float time, Vect
|
||||
int idx = Animation::search(_frames, time, ENTRIES) + INHERIT;
|
||||
bone->_inherit = (Inherit) _frames[idx];
|
||||
}
|
||||
|
||||
|
||||
@ -338,12 +338,14 @@ void PhysicsConstraint::update(Physics physics) {
|
||||
if (x || y) {
|
||||
if (x) {
|
||||
float u = (_ux - bx) * i;
|
||||
_xOffset += u > q ? q : u < -q ? -q : u;
|
||||
_xOffset += u > q ? q : u < -q ? -q
|
||||
: u;
|
||||
_ux = bx;
|
||||
}
|
||||
if (y) {
|
||||
float u = (_uy - by) * i;
|
||||
_yOffset += u > q ? q : u < -q ? -q : u;
|
||||
_yOffset += u > q ? q : u < -q ? -q
|
||||
: u;
|
||||
_uy = by;
|
||||
}
|
||||
if (a >= t) {
|
||||
|
||||
@ -2,4 +2,3 @@
|
||||
|
||||
#include "SpineUEGameMode.h"
|
||||
#include "SpineUE.h"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user