Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Arkanoid collision problem  (Read 1642 times)

0 Members and 1 Guest are viewing this topic.

santis

  • Newbie
  • *
  • Posts: 1
    • View Profile
Arkanoid collision problem
« 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

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: Arkanoid collision problem
« Reply #1 on: May 15, 2016, 08:18:43 pm »
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

UchihaKite

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Arkanoid collision problem
« Reply #2 on: May 16, 2016, 02:28:04 am »
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