Collision detection woes

Started by nickbrickmaster, February 10, 2014, 21:39:36

Previous topic - Next topic

nickbrickmaster

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:
https://github.com/epicfacecreeper/Wolfenstein3D/blob/test/src/main/java/net/cyberninjapiggy/wolf3d/Level.java#L158
Here is the original:
https://github.com/BennyQBD/Wolfenstein3DClone/blob/master/src/com/base/engine/Level.java#L122

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.