Question by 
               Maou_ · May 03, 2020 at 02:43 PM · 
                rotationquaternionlookatsmooth  
              
 
              Smooth look at
Hello, I want to create a smooth look at for my character controller, my character must lock at the direction that he walks, but using the look at the result it's a trash, I also tried to use Quaternion.lerp and quaternion.LookRotation, but using this method, when I release the walk button my character don't stay in the rotation that's I leave him. Is there any way to fix this?
edit: My code
 CharacterController character;
 public Transform cameraDir;
     Vector3 movement = cameraDir.transform.forward * moveY * 10 + cameraDir.transform.right * moveX * 10;
     character.Move(movement * Time.deltaTime);
     transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.LookRotation(movement), 15*Time.deltaTime);
Ps: sorry for by bad english, I'm not a native english speaker and I can't think about anything else because I didn't sleep in last night.
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                