physicsjs - Increase the restitution value for circle and retangle
In this example we are increase the edge-collision-detection restitution value. Physics(function(world) { // bounds of the window var renderer = Physics.renderer( 'canvas', { el: 'viewport', // id of the canvas element width:500, height:500 }); world.add(renderer); var square = Physics.body( 'rectangle', { x: 250, y: 250, vx: 0.10, ...