So, here's what I'm trying to accomplish. I have a dragable object (not using drag & drop behavior) that I want to face in the direction the user is dragging. I'm using the following equation to accomplish this:
Set OBJECT angle: Angle(0,0,OBJECT.Physics.VelocityX,OBJECT.Physics.VelocityY)
This works but is very janky. See the gif:
Is there a way to smooth out this behavior? I was thinking of maybe only adjusting the angle when larger changes in velocity are made instead of adjusting every tick, but I'm not sure how to code that.
I'm going to work on testing that theory out, but I thought I'd check to see if anyone else has a better idea of how to achieve this.