MCPcopy Create free account
hub / github.com/MyGUI/mygui / jumpMoveFunction

Function jumpMoveFunction

MyGUIEngine/include/MyGUI_ActionController.h:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 /** Function for ControllerPosition per frame action : Move with accelerated speed a bit farther than necessary and then return it back */
51 template<int N>
52 inline void jumpMoveFunction(
53 const IntCoord& _startRect,
54 const IntCoord& _destRect,
55 IntCoord& _result,
56 float _current_time)
57 {
58 float k = std::pow(_current_time, 2.0f) * (-2 - N / 10.f) + _current_time * (3 + N / 10.f);
59 linearMoveFunction(_startRect, _destRect, _result, k);
60 }
61
62 /** Function for ControllerPosition per frame action : Start with zero speed increasing half time and then decreasing to zero */
63 void MYGUI_EXPORT inertionalMoveFunction(

Callers

nothing calls this directly

Calls 1

linearMoveFunctionFunction · 0.85

Tested by

no test coverage detected