Lomaz Posted March 31, 2015 Share Posted March 31, 2015 Quick question for you guys, so I am using a sprite-sheet for my player, and I was wondering if I can make the collision boundary.. or whatever you want to call it, the edge of the sprite, circular? is this something that is potentially easy to do? if it matters I am using P2 physics. Link to comment Share on other sites More sharing options...
icp Posted March 31, 2015 Share Posted March 31, 2015 Take a look here :http://phaser.io/examples/v2/p2-physics/mouse-springmySprite = game.add.sprite(200, 200, 'mySprite');game.physics.p2.enable(mySprite, true);mySprite.body.setCircle(20); ZoomBox 1 Link to comment Share on other sites More sharing options...
Recommended Posts