problem with forces in slopes

l34ndr4

12-04-2006 05:23:11

hi,
I have two problems with forces in my game that I havent found a solution,
Im making an FPS, so the player movement its all right.
my 2 problems are related with slopes:

1) when I stop (my character "Ellipsoid") in a slope it
starts to move down because of the gravity, so I havent found an answer how to make him not to move when his in a slope.

2)when going up a slope if im going up and then stop , the character makes a little jump relative to the slope im climbing.

pls, can someone tell me how can I anulate this forces so that he does not move like this.

thx.

OvermindDL1

12-04-2006 18:19:34

1) Add more linearDamping is how I fixed that for my vehicles.

2) Don't recall seeing that happen. Demo?

pfo

14-04-2006 00:47:46

1) The way the Newton character controller demo solved that one was to use a material callback that would set contact friction to 2.0 when a character was not moving, and 0.0 when the character was moving (controlled by a movable flag in each character). I think that might fix the other problem too, I tried this out for a character controller once and it had a real natural feel to it, like you might find in most games.