- Home /
Freezing Rigidbody2D rotation ?
Hey Guys,
I have a character which has a Rigidbody on it. I freeze all his rotation on it so for example when I run into a wall, he stands still. But since it is a 2d character, I changed it for Rigidbody2d and I can't seem to find a way to freeze my rotation on my rigidbody2d so now my character will always fall and rotate which I don't want. Note that the line I use to move my character is something like that.
mTransform.Translate(Vector3.right*Time.deltaTime*movementSpeed);
Does anybody has an idea to achieve this result ? I'd really like to keep using the rigidbody2d if possible.
Thanks a lot for your time :)
Claude
Answer by s_guy · Nov 14, 2013 at 02:00 AM
I also noticed that constraints were missing on the rigidbody2D. There is, however the option to fix the angle on them.
http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody2D-fixedAngle.html
Your answer
Follow this Question
Related Questions
Rigidbody Bouncing Issue 2 Answers
I cannot freeze both position on one axis together with rotation 1 Answer
Rigidbody Freezerotation - Freezing one angle? 2 Answers
Rigidbody: Freeze All vs InKinematic 0 Answers
"Freeze Position" applied to an axis affects the bounciness of the object's collider on that axis. 0 Answers