- Home /
Stop a rotating plane using external force
I have a plane which rotates using rigidbody.MoveRotation(). I want the rotation to slow down and ultimately stop after a certain time.
On the screen I want to show that the Plane stopped rotating because it kept hitting another object.
How can I do this? Please help.
Answer by StephanK · Jun 28, 2010 at 09:29 AM
You can adjust the rigidbody's angular drag. This will slow down and ultimately stop the rotation of your object. I don't know what you mean with your second question. How to print something to the screen?
I dont want to print anything on the screen. I meant that on screen it should look like the plane stopped moving because of the other object.
I should adjust the angular drag in script?
$$anonymous$$y object is kinematic...the angular drag is not working :(
If you are using the example code for $$anonymous$$oveRotation() just decrease eulerAngleVelocity. You can use a Coroutine and Vector3.Lerp for that.
Your answer
Follow this Question
Related Questions
How can we ball move and rotate simultaneously? 3 Answers
Exploide GameObjects Into BrokenParts : Unity 1 Answer
A node in a childnode? 1 Answer
Movement problem? 0 Answers