Luiz Bills Posted July 17, 2014 Share Posted July 17, 2014 How disable impact on arcade physics to all bodies? Link to comment Share on other sites More sharing options...
Edricus Posted July 17, 2014 Share Posted July 17, 2014 If your talking about one object being able to push another then set their immovable member to true. This will make it so whatever physics body hits that immovable object, the immovable object won't move. Link to comment Share on other sites More sharing options...
Luiz Bills Posted July 17, 2014 Author Share Posted July 17, 2014 But an immovable can't collides with another immovable. Link to comment Share on other sites More sharing options...
Edricus Posted July 17, 2014 Share Posted July 17, 2014 Hmm, so you want one object to pass through another object? I'm not quite sure what your initial question means. Could you try rephrasing or further explaining? Perhaps a hypothetical example would help. Link to comment Share on other sites More sharing options...
Dumtard Posted July 17, 2014 Share Posted July 17, 2014 I am not sure what you are asking but if you do not want a body to stop when coming into contact with another you can use overlap instead of collide. game.physics.arcade.overlap(sprite1, sprite2) Link to comment Share on other sites More sharing options...
lewster32 Posted July 17, 2014 Share Posted July 17, 2014 You can also disable specific collisions by using the processCallback on collide:game.physics.arcade.collide(player, obstacles, function(player, obstacle) { // do something (if you want) when the collision happens (only if the next function returns true however)}, function(player, obstacle) { // if this function returns false, then the collision does not occur, if it returns true, it does if (player.isRoundPeg && obstacle.isRoundHole) { return false; } return true;}); Link to comment Share on other sites More sharing options...
Luiz Bills Posted July 17, 2014 Author Share Posted July 17, 2014 I solved. Thanks everyone for all help. Link to comment Share on other sites More sharing options...
Recommended Posts