Table of Contents

Bounce

Like Lerp motion, but the companion bounces up and down periodically.

To have the companion show an alternate animation while bouncing, set a "Jump" animation clip with the desired frame start, frame length, etc.

The difference between Bounce and Hop is that bounce calculates bounces independent of lerp start and end, it also provides squashing for deforming the sprite when hitting the ground.

Args

Property Type Default Notes
MaxHeight float 96 Height of bounce.
Squash float 0f Amount of squish to apply when companion hits the ground.
Period float 400 Length of each bounce in miliseconds.

*and all arguments of Lerp