MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / update

Method update

Source/Animation/Action.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool PropertyAction::update(Node* target, float elapsed) {
131 if (_ended && elapsed > _duration) return true;
132 float time = std::max(std::min(elapsed / _duration, 1.0f), 0.0f);
133 _ended = time == 1.0f;
134 _setFunc(target, _start + _delta * (_ended ? 1.0f : _ease(time)));
135 return _ended;
136}
137
138/* Tint */
139

Callers 1

updateProgressMethod · 0.45

Calls 13

setColor3Method · 0.80
maxFunction · 0.50
minFunction · 0.50
Color3Class · 0.50
setAngleMethod · 0.45
getDurationMethod · 0.45
setVisibleMethod · 0.45
emptyMethod · 0.45
emitMethod · 0.45
sizeMethod · 0.45
getTextureMethod · 0.45
setTextureMethod · 0.45

Tested by

no test coverage detected