I created a terrain with hills that is very close to 90 degrees. Whats happening is that the player is able to climb the hill if I keep hitting the jump button. What am I doing wrong?
Thanks,
Tri
I created a terrain with hills that is very close to 90 degrees. Whats happening is that the player is able to climb the hill if I keep hitting the jump button. What am I doing wrong?
Thanks,
Tri
Try increasing the slopeLimit to 90.
By default the Slop Limit = 45 and I would hit jump to climb up the hill(90 degrees) and when i set the Slop Limit = 90 I would go straight up the hill w/o needing me need to jump. Not sure where to go from here. Please advise…
Thanks,
Tri
I’m not sure if there is a better way to do in it unity. However, I know in other game engines you sometimes have to add simple polygon plane and make it invisible with a collision.
Not sure if there is a better way to do it or not in Unity, but I also noticed the same thing on the demo tropical island.
I guess that is one way which I will follow until further solution.
I feel, correct me if I’m wrong, as if this may be a glitch in the program because I didn’t have this minor issue with other engines that I’ve used.
Tri
Here is a simple replacement for the FPSWalker that doesn’t allow the controller to jump when on a slope greater than the character controller’s slopeLimit.
http://www.friendshangout.com/unity/danny/code/FPSWalker.js
So no, it’s not a glitch in the program, it’s in the script and is easily fixable.
HTH
Thank you Danny for linking me to that js. It worked great.
Tri