Recreating 'FallingShapes" demo in P2.js


I am trying recreate “fallingShapes” demo ( in P2.js.

Here is the somewhat working source code,
and live demo here,

I am unable to get “restitution” (bounce) on sphere to work. Any help is appreciated.

The p2material script is still not fully implemented:

The integration library needs a little further work in that area before material properties like restitution and friction are fully supported, it seems.