Rotation issue :(

Hey,

I’m doing something pretty darn simple, just rotating a ship with this code:

if (Input.GetKey("d")) 
   { 
      transform.Rotate(Vector3.right * Time.deltaTime); 
   }

For some reason, this causes my gameobject to slide backward instead of rotate right, any idea as to why this could be happening?

You’d think that after using Unity for a year I’d remember how to rotate stuff correctly, . Thanks for your help.

Hum, is the pivot of the object correctly on itself ?

If the anchor point isn’t in the centre of the object, you can put it inside a parent object and then add the script to the parent.