Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBlack-Rook

Posted 09 October 2012 - 01:47 AM

If he want's perfect collision then use pixel perfect for the ball when ghost checking 1 pixel movement at a time in that path per frame, problem solved.

I'm simply providing a simple and basic way to handle a ball hitting four sides. If he needs something more there are several physics engines out there to use.

Edit: I forgot to note down, due to the ball being able to curve, ect... You would need a formula to determine the correct path before checking against it.

#1Black-Rook

Posted 09 October 2012 - 01:35 AM

If he want's perfect collision then use pixel perfect for the ball when ghost checking 1 pixel movement at a time in that path per frame, problem solved.

I'm simply providing a simple and basic way to handle a ball hitting four sides. If he needs something more there are several physics engines out there to use.

PARTNERS