A Rigidbody sits on a plane, rotation controlled by a script.


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?

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.