- Home /
Question by
mohammedshijin · Mar 27 at 05:17 PM ·
rotationquaternionflipping
How to set rotation of z to a particular value and then apply torque about another axis ?
I am trying to set the EulerAngle.z to a particular value and then add flip functionality about X axis...
example :
transform.eulerAngles = new Vector3(transform.rotation.eulerAngles.x, transform.rotation.eulerAngles.y, zValue);
rb.AddRelativeTorque(Vector3.right * flipAxis* flipForce);
Currently the bike would rotate arond the X axis till 90 and then the bike would just invert instantly.
Comment
Your answer

Follow this Question
Related Questions
Calculate rotation angle for two side of cube ( like dice ) from Quaternion.identity 0 Answers
calculating looking angle between 2 transforms 0 Answers
Look at like rotating around y axis 1 Answer
ConfigurableJoint - angular positions (rotation) problem 1 Answer
How to rotate a quad based on another object's rotation? 0 Answers