I'm trying to rotate an object by dragging it through linetrace. Everything work good except that my object starts to rotate as if I were passing It the roll value too. Is there a way to continuously set the roll value to zero to avoid this unwanted rotation?

Thank you very much.

Here is the blueprint.enter image description here

1 Answers

0
Community On

Set the actor's rotation with SetActorRotation with Roll 0 and apply GetActorRotation's Pitch and Yaw to it after AddWorldRotation. That's if you want to continue using AddWorldRotation.

I personally would use GetActorRotation + DragWorldRotation then SetActorRotation with Roll 0. This is without using AddWorldRotation.