How to Freeze Sprite/Animation Rotation?

I’m working on a 2D flying enemy in my game that will home in on the player using this tutorial: How to make a Homing Missile in Unity - YouTube

My code is working just like the tutorial, but the problem is that I don’t want it to appear like the enemy is rotating (the enemy is supposed to be a fly, so it rotating so the top of it faces the player looks really weird). Is there a way in the Sprite Renderer or Animator to make it so that the sprite itself doesn’t rotate, but the Rigidbody still does?

Yes.You can enable rotation by Rigidbody.In Rigidbody there is a method to freeze rotation x,y and z.
172170-un.png
Hope this will help