- Home /
Question by
hirjanfabian · May 25, 2019 at 01:56 PM ·
rotationrotaterigidbody2d
How to rotate your character C#
I'm trying to rotate a player like in 'happy wheels'. rotate should be like. I tryed transform.Translate(0f, 0f, 3f); //transform.Rotate(0, 0, -1.0f);
Comment
And what problems are you facing exactly? If you rely on collision detection, you must use the Rigidbody
functions (`AddTorque` to rotate the rigidbody)
Answer by JoinTheResistnz · May 26, 2019 at 11:19 AM
Transform.rotation = new Quaternion(0, 0, 0, 0) //Rotate the player by however much you want