WombatTurkey Posted November 12, 2015 Share Posted November 12, 2015 For example, take this:bullets = game.add.group(); bullets.enableBody = true; bullets.physicsBodyType = Phaser.Physics.P2JS; bullets.createMultiple(125, 'bullet');So, 125 sprites will be generated. Now, these 125 sprites will collide with themselves in the world. I am curious if it's possible to set them to not collide with themselves only, but still be able to collide with other objects in the world? Link to comment Share on other sites More sharing options...
WombatTurkey Posted November 13, 2015 Author Share Posted November 13, 2015 Looks like changing the motion state will make them not collide with each other. And that's what I ultimately want with the ability to collide with others, so I found this:bullets.setAll('body.motionState', 3);So I guess this works for now. Link to comment Share on other sites More sharing options...
Recommended Posts