So I'm working on an Arkanoid clone (with powerups, enemies, etc) as a programming practice project. Using XNA/C# to do it (because I know C# and dot net).
What is a good method to detect which side of the block the ball hit (either X or Y) to reflect the balls corresponding velocity (either X or Y).
Its a little different than the normal collision detection I'm used to. When it normally doesn't matter where the object was hit.
Something like this must be used for Super Mario Bros, as Mario dies if he hits a goomba from the side, but not if it is on the head.
What is a good method to detect which side of the block the ball hit (either X or Y) to reflect the balls corresponding velocity (either X or Y).
Its a little different than the normal collision detection I'm used to. When it normally doesn't matter where the object was hit.
Something like this must be used for Super Mario Bros, as Mario dies if he hits a goomba from the side, but not if it is on the head.