Open msouth opened 10 years ago
Nice idea! Might indeed be useful and it would not require additional complex UI or keybindings, like you said we can use the existing shift key to incorporate this functionality :)
I guess we would need to cast a ray in the velocity vector direction and check downwards, if the slope is bigger than 45 degrees. Or if nothing is hit (=cliff)
I played the old Tomb Raider series, and I think I remember a feature where you could hold down a modifier and it would not walk off of a platform. You could just walk to an edge and it would stop when you were on the verge of falling off even if you were indicating to keep going in that direction.
It would be nice, say, when you are on a box trying to kill with underpowered/under-ranged weapons, to walk right to the edge of the box without falling off.
It would make parkour less frustrating, as well, because right now you can't tell by looking if you can take another step without falling or not.
You could do this with an extra modifier key, or incorporate it into shift. I don't know how the physics works but the logic would be something like this