August, 2015
Unity & Code
Getting the Angle of Sloped Ground Beneath a Player in Unity
With a player character who’s traversing up and down hills, knowing how steep the incline is that they’re walking on can be useful. Perhaps the character can slide or perform some other action, only when the angle is above a certain number of degrees. Or there could be a vehicle involved, that needs adjustments made to it. I [...]