Convert FVector to FRotator

I am making a rotation based on the player acceleration which is a vector. When I compile I get error saying that you cannot convert FVector to rotator any help please?

yourFVector.Rotation()

This will return a FRotator from your FVector.


Same thing the other way to get a vector from a rotator :

yourFRotator.Vector()

2 Likes

Thank you it worked!!!

Thanks, this is helpful info to know.

Hello,

This is a question from the beta version of the engine. We are marking this answered for tracking purposes. If you are experiencing an issue similar to this please post a new question.

Thank you.