Hi all
I’m impressed with the locomotion system. It works perfectly for me, but I’ve found that the speed of the character gets higher when climbing and lower when going down a slope.
I’ve tried unsucessfully with the parameters, so before digging in the code does anybody knows how to fix this problem?.
If not any hint about what scripts have I to check out are welcome.
Thanks!
I expect you are using a Character Controller. In the Locomotion System project are different scripts that can be used to steer the Character Controller (based on physics and so on).
For solving your problem I would first try some of those scripts and see which one is the best.
The Locomotion System only handles the details of the movement, whereas those Character Controller scripts handle the general movement, which is the problem, if I understand you correctly.
if you are using normalcharactermotor
there is a line of code… float maxVerticalVelocity = ??
if you set this to a small value (relative to your forward speed) it stops the character moving up or down slopes too fast, and he walks instead…
try .5
Its not ideal… but it works.
You’ll want to probably change that also if the character is jumpign or falling.
if you are using normalcharactermotor
there is a line of code… float maxVerticalVelocity = ??
if you set theis to a small value (relative to your forward speed) it stops teh character movign up or down slopes too fast, and he walks instead…
Its not ideal… but it works.
You’ll want to probably change that also if the character is jumpign or falling.