I’m currently trying to get the Z rotation of an actor on the ground but when I use Get Actor Rotation it always returns a value of 0. If I make the actor fly it works as it should and gives me the correct angle (pitch). This is for a mod for Ark: Survival Evolved by the way. I’m trying to raise or lower the amount of time it takes to reach maximum run speed on the larger dinos depending on the slope of the ground that they are running on. If they go uphill it takes longer to reach max speed and vice versa.
What nodes can I use to achieve this? I really just want to get an angle to work with so that I can plug it into my formula and speed things up or slow things down. I’ve also tried to get the angle using Get Actor Forward Vector and Get Actor Up Vector, normalizing both, sending them to a Dot Product node, and then running them through a ACOSd node, but that constantly gives me 90 on the return value.
I’ve been wondering about trying to get the angle between the actor’s current location and their last location from the frame before while the actor is moving but I’ve not been able to figure out how to do that. Are there any better ways to get the angle of the slope that the actor is traveling over?