Formatting

This commit is contained in:
Mario Zechner 2024-04-04 15:27:43 +02:00
parent e623140c99
commit 120577bfe6
20 changed files with 1131 additions and 1131 deletions

View File

@ -74,4 +74,3 @@ void InheritTimeline::apply(Skeleton &skeleton, float lastTime, float time, Vect
int idx = Animation::search(_frames, time, ENTRIES) + INHERIT; int idx = Animation::search(_frames, time, ENTRIES) + INHERIT;
bone->_inherit = (Inherit) _frames[idx]; bone->_inherit = (Inherit) _frames[idx];
} }

View File

@ -338,12 +338,14 @@ void PhysicsConstraint::update(Physics physics) {
if (x || y) { if (x || y) {
if (x) { if (x) {
float u = (_ux - bx) * i; float u = (_ux - bx) * i;
_xOffset += u > q ? q : u < -q ? -q : u; _xOffset += u > q ? q : u < -q ? -q
: u;
_ux = bx; _ux = bx;
} }
if (y) { if (y) {
float u = (_uy - by) * i; float u = (_uy - by) * i;
_yOffset += u > q ? q : u < -q ? -q : u; _yOffset += u > q ? q : u < -q ? -q
: u;
_uy = by; _uy = by;
} }
if (a >= t) { if (a >= t) {

View File

@ -2,4 +2,3 @@
#include "SpineUEGameMode.h" #include "SpineUEGameMode.h"
#include "SpineUE.h" #include "SpineUE.h"