Smoothly rotate 3d character left and right.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Chevi

I’m making a 3D action sidescroller and right now the character can move left and right (video below) and I am having trouble getting the character to rotate smoothly instead of just snapping left and right, please help!


Right now I am using move and slide to move and changing rotation_degrees to rotate.

:bust_in_silhouette: Reply From: Christoffer Schindel

There are many ways this could be achieved, but I would recommend to either:

  1. Create the animation for it in an AnimationPlayer and have the animation trigger when moving left/right
  2. Use a Tween to interpolate the rotation degrees

I think the easiest way is the former.