I recently got the chance to create a basic movement system which takes into account the angle or slope of a hill and either speeds up or slows down the character so I figured I’d make a tutorial and show it off here for others!
Here is the link:
A quick overview of what the tutorial is all about:
This idea came about when a student of mine wanted to explore a landscape they created in Unreal but felt like running up large mountains and hills at the same speed they moved down was strange and unrealistic. Instead they wanted to simply slow the character down as they climb a steep slope and speed them up when running down hill.
We worked out a quick solution and I wanted to share it here for others! We will make a system that:
- Sets the character speed based on current angle of their surface
- Uses two line traces
- Uses float curve to control our speed
- Blueprint only
- Using Unreal Engine 4.8.1
Here it is in action:
Hopefully it helps others out!