SFML community forums
Help => General => Topic started by: santis on May 15, 2016, 12:05:50 pm
-
Hallo, I'm making an arkanoid project and i've encountered problem with my collison function. Could you try give it a look and tell me what is wrong with it? I'm posting two methods, I tried using both but they work with just one side of the brick.
http://textuploader.com/5boif
-
you may try manifold for detecting the collision from every directions up/down or left/right, here an excellent tutorial in this topic with examples:
http://trederia.blogspot.com/2016/02/2d-physics-101-pong.html
-
Judging by your code, you're a lot more experienced than I am, but I did just post up a topic in this same forum. In my code, I did kind of mimic collision in the bounds of the window. Check it out, might not help you out, but it might give you some ideas :D