OpherV Posted April 9, 2014 Share Posted April 9, 2014 Using p2 physics, how can I set how elastic is a body? That is - when that body collides with another body, how much energy returns so that it bounces back? I tried searching through both examples as well as documentation for this but no luck Link to comment Share on other sites More sharing options...
rich Posted April 9, 2014 Share Posted April 9, 2014 You use contact materials: http://examples.phaser.io/_site/view_full.html?d=p2%20physics&f=contact+material.js&t=contact%20material OpherV 1 Link to comment Share on other sites More sharing options...
OpherV Posted April 9, 2014 Author Share Posted April 9, 2014 Awesome! Thanks Link to comment Share on other sites More sharing options...
OpherV Posted April 9, 2014 Author Share Posted April 9, 2014 What would be a good way to debug contact materials? That is - to make sure the proper contact material is invoked on collision? Link to comment Share on other sites More sharing options...
Recommended Posts