MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / tweenTo

Method tweenTo

src/highlight.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void Highlight::tweenTo(const c2d::Vector2f &position) {
49 if (tween != nullptr) {
50 float seconds = (float) c2d_renderer->getInput()->getRepeatDelay() * 0.001f / 5;
51 tween->setFromTo(getPosition(), position, seconds);
52 tween->play(TweenDirection::Forward, true);
53 } else {
54 Transformable::setPosition(position);
55 }
56}

Callers 8

setVisibilityMethod · 0.80
onInputMethod · 0.80
resetMethod · 0.80
setSelectionMethod · 0.80
onInputMethod · 0.80
resetMethod · 0.80
setSelectionMethod · 0.80
setSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected