Need help with collision detection issue
Posted: Wed Jan 23, 2013 6:50 pm
Hey, first time writing here, but I'll try to be as thorough as I can.
I'm just starting to learn coding, so I'm always trying out things and practicing things, following tutorials and such.
So I tried following this tutorial about physics and world callbacks, and I think I got it, but I, being a beginner after all wanted to extend on it, so I started adding walls and blocks and such.
Now here is where my issue begins. Everything seems to work fine, except whenever the player ends up in a corner the jumping is disabled. And yes, I have states so the player can only use jump when on the ground (or platform). And I have turned off jumping when jumping and sliding down the wall. But even when I didn't have jumping on wall disabled, the wall would always disable the collision with the ground.
I guess I typed a little more than necessary as the end seems to pretty much sum it up. The wall disables the ground collision when in corner.
Any solution?
Oh, also, I might add, you can use either Xbox 360 controller or keyboard to move.
Controller:
Hold X : Move faster
A : Jump
Left stick to move
Keyboard:
Left & Right arrow keys to move
Hold lshift : Move faster
Space : Jump
Thanks in advance.
I'm just starting to learn coding, so I'm always trying out things and practicing things, following tutorials and such.
So I tried following this tutorial about physics and world callbacks, and I think I got it, but I, being a beginner after all wanted to extend on it, so I started adding walls and blocks and such.
Now here is where my issue begins. Everything seems to work fine, except whenever the player ends up in a corner the jumping is disabled. And yes, I have states so the player can only use jump when on the ground (or platform). And I have turned off jumping when jumping and sliding down the wall. But even when I didn't have jumping on wall disabled, the wall would always disable the collision with the ground.
I guess I typed a little more than necessary as the end seems to pretty much sum it up. The wall disables the ground collision when in corner.
Any solution?
Oh, also, I might add, you can use either Xbox 360 controller or keyboard to move.
Controller:
Hold X : Move faster
A : Jump
Left stick to move
Keyboard:
Left & Right arrow keys to move
Hold lshift : Move faster
Space : Jump
Thanks in advance.