Why this method works and the previous mathod doesn't?

I don’t understand how this new method is filtering out the Z axis (Yaw), because the previous method (previous lesson) with AddActorWorldRotation had Z axis (Yaw) at zero also, and nothing was influencing it. Please help, thanks.

3 Likes

@DanM?
Feel free to bump a topic after 48 hrs if you receive no reply.

That’s @Tuomo_T for UBP

I keep forgetting that. Thanks.

Hi Ahmad,

Setting actor rotation, as opposed to adding to current rotation, does filter out unwanted values in the Z-Axis. This has to do with vector and rotation math that the engine does and adding values to a rotation effects ALL axes of rotation, even if it’s just one axis.

Setting rotation directly bypasses that math and just tells the engine to set rotation to the exact values we want it to.

5 Likes

Thnx for the info, I had the same question.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms