Skip to main content

Questions tagged [detectcollision]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers

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 ...
CS50_on_the_go's user avatar
0 votes
1 answer

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 ...
Dilyana Petrova's user avatar
0 votes
1 answer

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), "...
kames's user avatar
  • 1