zmitry Posted May 14, 2015 Share Posted May 14, 2015 Im making a game using Phaser, physics engine is P2. How can i add arc (curved line) shape to body? Is is possible? Maybe i need to implement my custom shape? Or maybe i need to switch to Box2d? Link to comment Share on other sites More sharing options...
icp Posted May 15, 2015 Share Posted May 15, 2015 Create your custom shape in any graphic editor and then use http://www.codevinsky.com/phaser-and-physics-polygonal-collisions-primer/ .Example : http://phaser.io/examples/v2/p2-physics/load-polygon-2. Link to comment Share on other sites More sharing options...
zmitry Posted May 18, 2015 Author Share Posted May 18, 2015 I've should been said that i dont have arc parameters until runtime.Im doing it by interpolating arc with lines. Link to comment Share on other sites More sharing options...
Recommended Posts