- Home /
Why is my CharacterController slowing on hills?
I am using a CC for a platforming game and everything is going great except for when the CC moves on slopes. It hardly makes it up even a 45 degree slope. The slope limit is high, so it has nothing to do with that. There are no downward forces going on either. Any ideas?
Answer by Fabkins · Apr 29, 2012 at 12:06 AM
Its an attribute of the character controller. You can change it in the inspector. Look at the Slope Speed Multiplier.
Double click on it and you can change the curve.
Thanks for your reply. I'm not using that Character $$anonymous$$otor script though, just the CharacterController component.
Ah ....
Well in which case the Character controller also has a "Slope Limit"
The Slope Speed $$anonymous$$ultiplier has no effect for me. I made it a straight line at 1.0, curve from 1.0 to 2.0, and the player always slows down on slopes.
Answer by Fabkins · Apr 29, 2012 at 12:19 AM
Try?
That's the cut-off for whether CC.move will/won't move forwards (but the script controls whether you can stand on something that steep.)
I believe slowing down up to that point is also built-in to the CC.move function (the same magic that slides you if you hit a slanted wall.)
Answer by Kalocyte · Dec 12, 2013 at 09:35 PM
When editing the Slope Speed Multiplier you also have to edit the Step Offset. Step Offset also seems to affect on the speed on slopes. Not quite sure how and why exactly though.