I am making a simple physics-based game with the physics plugin for Wade. In this game you control a ball (it's a pinball sort of thing) and you have to collect coins.
I have set up my ball and coins as physics objects, and I have created an onCollision function for my coins. In this function, I simply remove the colliding coins from the scene and increment the score
coin.onCollision = function(eventData){ if (eventData.object.getName() == 'ball') { wade.removeSceneObject(coin); score++; }};
This works perfectly, but the ball is actually colliding with the coins. I mean, I don't want the trajectory of the ball to be affected by the collision with the coin objects, but this is what is happening at the moment. Is there any way to stop that?