Getting actor rotation around a specific axis?
I have an actor that is moving in the world while spinning on it's local Z axis(while starting off tilted on it's X and Y axis), which cause it's X and Y values to fluctuate wildly negative and positive. I need to get its X rotation along its direction of travel. I have the actors Physics velocity using:
I need to get the X angle(Preferably Euler or radians) relative to that being the forward vector, but I feel like I'm banging my head against the wall. I have tried using RotateVector and UnrotateVector with the objects rotation, but that doesn't seem to be getting me anywhere. I'm not sure I'm even looking at this the right way. Anyone point me in the right direction?
asked Jul 10 '18 at 05:01 AM in C++ Programming
To be frank, I don't really understand the question but...
There is a simple way to get the angle between any 2 vectors:
Don't be afraid of angles fluctuating. Angle values always flip their sign at the end of the circle the same way you go from 0 to 180 degrees then flip to -180 and back to 0.
Be careful of what
answered Jul 10 '18 at 09:48 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here