Hi everyone! I’ve almost ready a simple ledge grabbing system with a character automatically grabbing a ledge when it’s jumping.
I’ve just have some little problem; sometimes, in some enter angle, the character’s rotation towards the ledge isn’t accurate.
I’ll try to explain it; to calculate the character’s rotation I just use the impact normal and making a rotator from X, as almost all ledge tutorial point it out. This works fines most of the time but sometimes the angle isn’t accurate. Isn’t a big problem (the angle isn’t just perfectly aligned), but that messes with the system to move along that ledge.
So, the big question would be; how you calculate the angle towards some surface??
I attached the rotation system I’m using.
Thanks for reading!!