Bouncing animation

Hi All.

Can you recommend some bunching animation technique? I’m not really happy with a simple formula.

const bounce = Math.sin(progress * Math.PI * 5) * bounceIntensity * (1 - progress);

dice.position.z = Math.abs(bounce);

Example here - https://diceroll.win/

https://codepen.io/illuminsi/pen/bNVjWQr

3 Likes

Maybe something like here: codepen.io/trushka/pen/GgpBBqm

3 Likes

Good feel on that one..

Reworked using ammo.js It seems to me that was a good decision.

Thanks to everyone foe help

1 Like