Questions tagged [detectcollision]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
99 views

PSET3 Breakout detectCollision function working but ball not bouncing off paddle

As the title says the detectCollision function is working properly but the ball is not bouncing off the paddle. I stuck on a printf in the "if(object == paddle)" func and it shows that it is ...
0
votes
1answer
259 views

pset3 Ball not detecting bricks

I have used detectCollision to make the ball bounce off the paddle. I have tried to use it to make the ball bounce of the bricks but it does not. Actually, it does not compile. This is the piece of ...
0
votes
1answer
495 views

Pset3, detect collision, paddle not ‘colliding'

I used the code given in the set GObject object = detectCollision(window, ball); if(object !=NULL) { if(object== paddle) { y_velocity=-y_velocity } } else if (strcmp(getType(object), "...