|
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.
(comments are locked)
|
|
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?
Jun 28 '10 at 09:33 AM
Pria
My object is kinematic...the angular drag is not working :(
Jun 28 '10 at 10:02 AM
Pria
If you are using the example code for MoveRotation() just decrease eulerAngleVelocity. You can use a Coroutine and Vector3.Lerp for that.
Jun 28 '10 at 10:40 AM
StephanK
(comments are locked)
|
