Can't compile on ue and have : was modified or is new

Don’t think it can bounce indefinitely.

Seems all objects lose energy with time. You would probably need to add velocity at points of the bounce to try to emulate it’s perpetual motion.