Programming => General Java Game Development => Topic started by: nickbrickmaster on February 10, 2014, 21:39:36

Title: Collision detection woes
Post by: nickbrickmaster on February 10, 2014, 21:39:36
I'm attempting to follow thebennybox's tutorials for the Wolfenstein 3D clone development, and I'm up to the collision detection, when it just plain does not work. The problem seems to be in the actual collision detection code, but if I compile the wolfenstein 3D clone repository, it works fine, which leads me to believe that the problem is in my code.

I can walk through walls and if I put in a println telling me if there is a collision, that is never printed.

Here is my collision detection code:
Here is the original:

Here are the two places level.checkCollision is called:
Server: https://github.com/epicfacecreeper/Wolfenstein3D/blob/test/src/main/java/net/cyberninjapiggy/wolf3d/event/MoveAttemptListener.java#L23
Client: https://github.com/epicfacecreeper/Wolfenstein3D/blob/test/src/main/java/net/cyberninjapiggy/wolf3d/event/MoveListener.java#L22

 Thanks for any help. I have been tearing my hair out over this.