mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-25 22:23:42 +08:00
[cpp] Formatting
This commit is contained in:
parent
62080c6c8b
commit
d03f535ed8
@ -164,4 +164,3 @@ bool BoneData::isVisible() {
|
|||||||
void BoneData::setVisible(bool inValue) {
|
void BoneData::setVisible(bool inValue) {
|
||||||
this->_visible = inValue;
|
this->_visible = inValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -155,7 +155,6 @@ float CurveTimeline1::getRelativeValue(float time, float alpha, MixBlend blend,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return current + value * alpha;
|
return current + value * alpha;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float CurveTimeline1::getAbsoluteValue(float time, float alpha, MixBlend blend, float current, float setup) {
|
float CurveTimeline1::getAbsoluteValue(float time, float alpha, MixBlend blend, float current, float setup) {
|
||||||
|
|||||||
@ -94,7 +94,6 @@ void PathConstraint::update(Physics) {
|
|||||||
float x = setupLength * bone._a;
|
float x = setupLength * bone._a;
|
||||||
float y = setupLength * bone._c;
|
float y = setupLength * bone._c;
|
||||||
_lengths[i] = MathUtil::sqrt(x * x + y * y);
|
_lengths[i] = MathUtil::sqrt(x * x + y * y);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (size_t i = 1; i < spacesCount; ++i) {
|
for (size_t i = 1; i < spacesCount; ++i) {
|
||||||
|
|||||||
@ -42,8 +42,7 @@ PhysicsConstraintData::PhysicsConstraintData(const String &name) : ConstraintDat
|
|||||||
_x(0), _y(0), _rotate(0), _scaleX(0), _shearX(0),
|
_x(0), _y(0), _rotate(0), _scaleX(0), _shearX(0),
|
||||||
_step(0), _inertia(0), _strength(0), _damping(0), _massInverse(0), _wind(0), _gravity(0), _mix(0),
|
_step(0), _inertia(0), _strength(0), _damping(0), _massInverse(0), _wind(0), _gravity(0), _mix(0),
|
||||||
_inertiaGlobal(false), _strengthGlobal(false), _dampingGlobal(false), _massGlobal(false),
|
_inertiaGlobal(false), _strengthGlobal(false), _dampingGlobal(false), _massGlobal(false),
|
||||||
_windGlobal(false), _gravityGlobal(false), _mixGlobal(false)
|
_windGlobal(false), _gravityGlobal(false), _mixGlobal(false) {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -711,4 +711,3 @@ void Skeleton::setTime(float time) {
|
|||||||
void Skeleton::update(float delta) {
|
void Skeleton::update(float delta) {
|
||||||
_time += delta;
|
_time += delta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user