I added a parameter IsInverted to door open so i can say to the door to open to the other side.
how ever for some reason the inverted door is spinning forever… i tried various setups but nothing works…
I did notice that in the lerp function if destination is smaller than the beginning , the door spins.
it seems strange…
i added the code here hope some one can point me to the right direction…
Ahh that makes sense. GetActorRotation() returns a value between -180 and 180 and you’re trying to set its rotation to -270 which it never will.
doorRotation.Yaw is -163.812500
doorRotation.Yaw is -169.121826
doorRotation.Yaw is -174.165741
doorRotation.Yaw is -178.957428
doorRotation.Yaw is 176.490433
doorRotation.Yaw is 154.165924
doorRotation.Yaw is 132.957626
doorRotation.Yaw is 112.809700
Mike’s code works as it’s not working off of GetActorRotation but the CurrentYaw value it’s storing.