Hello All!
I am trying to make the player's angle change gradually when he is walking on a ramp/slope (using the platform behavior).
I searched and found this nice example by JohnnySix (Platform movement with Ramps), but this changes the angle instantly. I want to use the lerp expression to make the transition between the angles more gradual. But I am encountering the following problem:
When the angle has a negative value in relation with the player's "0" angle reference, the rotation is going berserk! I admit, it does produce an interesting effect, like a tumbling, but it's not the result that I am after. With positive angles, the outcome is different.
You can observe the problem here.
And here is the capx file.
Use the arrow keys to move...
Can someone help me with this problem??? Or is there any other way to achieve the same result, I mean for the player to follow the curvature of the ground and change it's angle respectively??
Thank you in advance!!!
Elias