ForgeableSum Posted February 13, 2015 Share Posted February 13, 2015 I'm not looking for advanced polygons, just simple shapes, like diamonds. I understand that P2 is better suited for this but I'm looking for a way to do it in arcade. Link to comment Share on other sites More sharing options...
spencerTL Posted February 13, 2015 Share Posted February 13, 2015 My understanding is that unfortunately no.Arcade Physics uses Axis Aligned Bounding Box physics (AABB) which fundamentally means rectangles aligned to the axis is its limit and what allows it to be so quick. ForgeableSum 1 Link to comment Share on other sites More sharing options...
horkoda Posted February 13, 2015 Share Posted February 13, 2015 Only if you implement them yourself.However, I should tell you that P2 can be sufficiently quick after you strip away the parts that you don't need. At least that's what I've heard on these forums. Link to comment Share on other sites More sharing options...
kemz Posted March 6, 2015 Share Posted March 6, 2015 you can use Physiceditor to trace the outline of the sprite shape and save it as a JSON file. This JSON file can then be load by using --> game.load.physic(); if you don't mind you can refer to examples.phaser.io/_site/view_full.html?d=p2%20physics&f=load+polygon+1.js&t=load%20polygon%201 Link to comment Share on other sites More sharing options...
ForgeableSum Posted March 6, 2015 Author Share Posted March 6, 2015 you can use Physiceditor to trace the outline of the sprite shape and save it as a JSON file. This JSON file can then be load by using --> game.load.physic(); if you don't mind you can refer to examples.phaser.io/_site/view_full.html?d=p2%20physics&f=load+polygon+1.js&t=load%20polygon%201But that example uses P2 physics.. Link to comment Share on other sites More sharing options...
Recommended Posts