- Home /
How to restore a rigidbody rotation
Hi, I have a rigidbody platform with a configurable joint, I want after the player or any other rigidbody leaves this platform then the platform restores his original rotation on about several seconds. thanks and sorry for my bad English.
Answer by Huacanacha · Nov 08, 2013 at 12:36 AM
Store the original rotation in a Quaternion, then set transform.rotation to the saved Quaternion to restore. If you need to do this smoothly over a few seconds (trying to read into your intentions here!) look at using Quaternion.Slerp.
Your answer
Follow this Question
Related Questions
How to rotate object about 2 axes (vertical y and depth z) using configurable joint. 0 Answers
weird behaviour configurable joint Strecthing when Draging 0 Answers
How do I rotate the propellers on this drone? 1 Answer
How do I rotate finger joints using controller input? 0 Answers
Freezing Rotation and Joints (Swing / Rope) Physics Issues 1 Answer