Hello...
As you people already know, I am using a game engine that uses box2D...
I am making a breakout clone game... I discovered that adding a AI from the game engine, and controlling the paddle with the mouse worked...
But the AI was a bit unstable, and I removed it...
This led to the paddle-ball collisions get erratic, sometimes the ball speeds up, sometimes the ball get glued to the paddle, it is REALLY bizarre...
I tought that this was fault of me moving with the mouse a object that has density, thus I set the density to 0. This solved the problem with the ball, but then I cannot get powerups anymore... The powerups are also set the density to 0, so I can manually move them around, because Box2D get HELL SLOOOOOOOOOOOOOO ... 3859823 OOOs ... OOOOW when I let it handle the powerups (a good player can easily spawn about 100 of them)
So, there are a way to make a object move with the mouse and not get wonky collisions? (in fact, it even threw some assert once, something about knormal...), or there are a way to make two density 0 objects collide?
As you people already know, I am using a game engine that uses box2D...
I am making a breakout clone game... I discovered that adding a AI from the game engine, and controlling the paddle with the mouse worked...
But the AI was a bit unstable, and I removed it...
This led to the paddle-ball collisions get erratic, sometimes the ball speeds up, sometimes the ball get glued to the paddle, it is REALLY bizarre...
I tought that this was fault of me moving with the mouse a object that has density, thus I set the density to 0. This solved the problem with the ball, but then I cannot get powerups anymore... The powerups are also set the density to 0, so I can manually move them around, because Box2D get HELL SLOOOOOOOOOOOOOO ... 3859823 OOOs ... OOOOW when I let it handle the powerups (a good player can easily spawn about 100 of them)
So, there are a way to make a object move with the mouse and not get wonky collisions? (in fact, it even threw some assert once, something about knormal...), or there are a way to make two density 0 objects collide?