'Three.js + Cannon.js - How to make a sphere bounce with elasticity?

Let's say I have a few basic spheres, like in this example: https://schteppe.github.io/cannon.js/demos/bounce.html

When adding physics via Cannon.js, the ball drops down from given gravity, but it's more like rock being dropped. Is it possible to make it elastic, such as add a "bounce" effect, where the sphere's geometry squishes towards the ground before bouncing back up?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source