streamer Posted August 10, 2014 Share Posted August 10, 2014 Hi,I just creating pinball game with Phaser... I'm using P2 physics. I have one sprite BALL: this.ball = game.add.sprite(x, y, 'ball'); game.physics.p2.enable(this.ball, false); this.ball.body.setCircle(10); this.ball.body.fixedRotation = true;But in one case I need to make this ball to ignore collisions with all elements... (ball should to pass through other sprites without collisions)I just need to turn off gravity, collision and then randomly move ball to different place and then turn gravity/collisions ON. I'm trying to create ball movement in rails above other elements. Link to comment Share on other sites More sharing options...
ssshenkie Posted August 10, 2014 Share Posted August 10, 2014 Have you tried this already? http://docs.phaser.io/Phaser.Physics.P2.html#removeBody Link to comment Share on other sites More sharing options...
Recommended Posts