- Home /
 
               Question by 
               charga600 · Nov 01, 2016 at 03:19 PM · 
                navmeshnavmeshagentnavigation  
              
 
              NavMesh and rotation before movement
Hey all, Quick question from a new Unity user. I'm creating a basic space strategy game in a 3D enviroment but limiting movement to a 2D plane. My problem is I want the ships to rotate to face the direction of a NavMesh path before following it. I've had a couple unsucessful attempts and was wondering if anyone could provide a method of doing it correctly? Thanks in advance
               Comment
              
 
               
              Answer by SergioSandiaz · Nov 02, 2016 at 05:30 AM
Well... you can before setting the destination use LookAt() or use Mathf.Lerp on every rotation vector to face the target.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                