- Home /
A Rigidbody sits on a plane, rotation controlled by a script.
Hi,
I have a RigidBody, which sits on a plane. I also have a script which is attached to the plane to make it rotate which certain keys are pressed. If when the rigidbody hits the plane, and the plane hasn't moved, then the rigidbody stays in mid air, even when Continuous Dynamic Detection is enabled. How do I fix this problem?
Answer by robertbu · Jul 11, 2013 at 12:51 PM
It is likely that your rigidbody has gone to sleep. You can wake the object by using Rigidbody.WakeUp(). You can set the Rigidbody.sleepVelocity to 0.0 to avoid going to sleep in the first place. You can also set the default sleep velocity for all objects: From the edit menu select Project Settings/Physics.
Your answer
Follow this Question
Related Questions
Spaceship physics - adding resistance 2 Answers
how to create the magnet similar to the real magnet ? 1 Answer
Problem with Rigidbody Parent/Child Relationship with "Teeter Totter" 0 Answers
Rigidbody not responding after toggling isKinematic 2 Answers
How to keep rotation from switching between - and + after a 360? 0 Answers