2d physics
Posted: Mon Sep 27, 2010 12:49 am
Hello, Ive just started using BEPU and so far looks good and has a great support on the forums, but Im having some issues and would like some tips on how to get my physics running as I want them.
Im trying to program something similar to new super mario bros, its pretty much 3d physics restricted to 2 axis(I have no issues with this), but in our game there are no slopes, all the environment meshes are boxes, and we would like to use boxes for the players too(I have this working too so far). I tried using both character controllers changing the bodies to boxes, but Im having some issues:
1) when a character jumps or falls from a very high distance, there is a very small lag, like if the box is colliding with the floor and moving up, the lag is very small, like half a second, but if possible we would like to not have any lag at all.
2)Friction, when I jump next to a wall and keep pressing in that direction, the character gets stuck in the wall until I release the key, and in that moment the body fall as expected, I tried setting friction to 0 and to use frictionblendmethod.min, but it still gets stuck.
3)When one player falls from a very high distance on top of the other player(is a 2 player game), the second character(the one on the floor), gets pushed down, and then it restores his position, we would like to be able to just jump on top of the other with no lag and no pushing down the other character.
The physics Im trying to replicate are very similar to megaman powered up: http://www.youtube.com/watch?v=Oz3qerUSCIs , or new super mario bros wii: http://www.youtube.com/watch?v=GpcJNEWKzCY
Any help would be greatly appreciated, thank you.
Im trying to program something similar to new super mario bros, its pretty much 3d physics restricted to 2 axis(I have no issues with this), but in our game there are no slopes, all the environment meshes are boxes, and we would like to use boxes for the players too(I have this working too so far). I tried using both character controllers changing the bodies to boxes, but Im having some issues:
1) when a character jumps or falls from a very high distance, there is a very small lag, like if the box is colliding with the floor and moving up, the lag is very small, like half a second, but if possible we would like to not have any lag at all.
2)Friction, when I jump next to a wall and keep pressing in that direction, the character gets stuck in the wall until I release the key, and in that moment the body fall as expected, I tried setting friction to 0 and to use frictionblendmethod.min, but it still gets stuck.
3)When one player falls from a very high distance on top of the other player(is a 2 player game), the second character(the one on the floor), gets pushed down, and then it restores his position, we would like to be able to just jump on top of the other with no lag and no pushing down the other character.
The physics Im trying to replicate are very similar to megaman powered up: http://www.youtube.com/watch?v=Oz3qerUSCIs , or new super mario bros wii: http://www.youtube.com/watch?v=GpcJNEWKzCY
Any help would be greatly appreciated, thank you.