rewb0rn
17-01-2007 15:35:32
Hi
I implemented the walking character from the ode tutorials and added a jump method. The problem is, that every time I jump the player reaches different heights, but I want it to be always the same height, so that the player knows what he can jump on and what not and so on.
It seems to be a problem with ode, that the velocity and force are computed different every time, because I only allow the player to jump if he is in contact with the floor and in addition all y force and y velocity is set to 0 before the jumpforce is added. Still there are big differences. Does some1 know how to make a body always jump the same?
I implemented the walking character from the ode tutorials and added a jump method. The problem is, that every time I jump the player reaches different heights, but I want it to be always the same height, so that the player knows what he can jump on and what not and so on.
It seems to be a problem with ode, that the velocity and force are computed different every time, because I only allow the player to jump if he is in contact with the floor and in addition all y force and y velocity is set to 0 before the jumpforce is added. Still there are big differences. Does some1 know how to make a body always jump the same?