Collision Problem!

Blitz3D Forums/Blitz3D Programming/Collision Problem!

Zenith(Posted 2005) [#1]
Strange! I'm working on my game, and the collision seems to get "stuck".
If you move at some angles on the walls in my game, it won't slide and just get stuck until you stop moving..
I tried reseting the entity before moving it the next loop, but it doesn't "care". This happens mainly when you run instead of walk. (So hold shift!)

Can anyone help me out? Here's a demo of my game..
http://electrodev.100free.com/rst.rar
Controls:
wasd to move, shift to run.

To Build Walls: Hold down Space, and use click the left mouse button to lay down vertices of a wall. Each wall takes 3 clicks. (maybe it should be 4, oh well. :))

Also, what do you guys think of the engine so far? :)


Zenith(Posted 2005) [#2]
Oh you know what? I just figured it out, I'm an idiot.

I had forgotten that I turned off backface culling, so that I wouldn't have to worry about what order to make the triangles, I guess collision only works one way. :)

I blame it on it being 2 AM.

Anyway should work fine now! Other than the top polygon, which I have to fix... After Sleep... :P


Damien Sturdy(Posted 2005) [#3]

had forgotten that I turned off backface culling, so that I wouldn't have to worry about what order to make the triangles, I guess collision only works one way. :)



Ouch. You may want to reconsider that one!


Zenith(Posted 2005) [#4]
Yeah, fixed it! ;)


Ice9(Posted 2005) [#5]
Yeah it works off the normals