temporalix Posted April 25, 2014 Share Posted April 25, 2014 Why do p2 sprites in a group collide with each other when collideWorldBounds=true but when I set it to false they stop colliding? Link to comment Share on other sites More sharing options...
JP91 Posted April 25, 2014 Share Posted April 25, 2014 default everything collides, if collideWorldBounds=false, so if I'm not mistaken getCollisionMask returns zero then shape.collisionMask=0 ==== not collision. Link to comment Share on other sites More sharing options...
temporalix Posted April 26, 2014 Author Share Posted April 26, 2014 It just seems weird to me that you can have collisions between sprites in a group when there is a boundary but as soon as you remove that boundary they stop colliding with each other. why not make them not collide from the start so that whether there is a boundary or not, you know sprites wont collide. the way i solved this was to make the sprite collision group collide with itself. Link to comment Share on other sites More sharing options...
JP91 Posted April 26, 2014 Share Posted April 26, 2014 hey, analyzing a bit if it's a little weird, but if you do not assign a collision group, then one that assigned by default to all. Link to comment Share on other sites More sharing options...
Recommended Posts