Original Post
Hello, i am currently writing a pseudo-3d* super mario bros 1 clone using lwjgl (Java), but i'm facing trouble with collision detection. I need to somehow check what direction an obstacle was hit from (jumping on enemies, destroy blocks etc), but i'm not sure how i can achieve this. I currently use the AABB-technique for all obstacles in the game world (i do 3d intersection checks for some game-features planned later on), but i'm uncertain what "logic" or design-pattern to apply for something like this. I have searched these forums, but i couldn't find anything specifically like this. Should more info be required, do reply and i will answer as quickly as i can. Any help would be appreciated, thanks. * 2d platformer but in a 3d world, all sprites being flat entities while the world is 3d blocks. Fixed camera in a "sidescrolling"-mode.