How to Break wheel rotator in C++?

I am trying to translate this graph into C++, break the wheel rotator, make it and set it to forward vector and right vector.

2 Likes

Hi Alexa.kl,

You don’t to break things like vectors and rotators in c++.

In this example you can do something like:

FRotator newRot(0,0,WheelRotator.Z);
newRot.GetForwardVector();
2 Likes

Hi RecourseDesign,
Thank You very very much, You Just solved my Problem )
Very clean and understandable Solution.

3 Likes

for me it works FRotator newRot(0, 0, ControlerRotation.Yaw); and if I put .Z it gives me an error, FRotator has no member .Z

3 Likes

Yes, i was away from UE - Yaw is correct.

3 Likes

Thank You for confirming it that Yaw is correct.

3 Likes