- Home /
How Can I Rotate an object and stop
So I'm trying to rotate a spaceship 360 degrees then stop. Just like an evasive manuever. Does anyone have any Idea how I can do this. When you move left, the ship tilts to the left 20 degrees and vice versa for the right side.
But I want to be able to rotate the ship with the spacebar key.
I tried usign AddTorque but it doesn't stop rotating. Does anyone have any Idea how to do this? I just started using Unity 3 weeks ago so I'm still learning.
Thank you for the help. Also I'm using C#.
Your answer
![](https://koobas.hobune.stream/wayback/20220613183923im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problem with jcar script for android mobile 1 Answer
NullReferenceException Problem 1 Answer
change camera location to some object 1 Answer
NullReferenceException: Object reference not set to an instance of an object 1 Answer
I'm new to coding. BCE0044 error. How do I fix? When I delete the extra } it gives me 23 errors 3 Answers