class Levitator { Public:Constructor: startLocation = getRelativeLocation StartLevitator()
StartLevitator if (not isRunning) isRunning = true; if (up) Start Timeline forward else start Timeline reverse
On Timeline Tick SetRelativeLocation = StartLocation + LERP(bottom, top, timelineAlpha);
On EndTimeline isRunning = false; up = not up; delay 3 seconds StartLevitator(); private bool isRunning = false; bool up = true; int direction = 1; vector startLocation }