Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Programming
General Java Game Development
Collision detection woes
« previous
next »
Print
Pages: [
1
]
Collision detection woes
0 Replies
4655 Views
nickbrickmaster
16
Collision detection woes
«
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:
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.
Logged
Print
Pages: [
1
]
« previous
next »