Question by
HDBro · Jul 28, 2020 at 06:20 PM ·
rotationrigidbodyrigidbody2drotation axislocal
rigidbody.rotation locally; Help!
I'm currently making a spaceship game that uses both rigidbody.velocity and rigidbody.rotation to move. I was able to get rigidbody.velocity to work relative to the local objects axis, but i'm having trouble doing the same with rigidbody.rotation . Basically what i'm asking is how do I set the rigidbodys axis relative to the local objects axis oppose to global. btw i'm using rigidbody.rotation instead of rigidbody.AddTorque because rigidbody.rotation allows me to tilt the ship instead of a constant spin.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613004303im_/https://answers.unity.com/themes/thub/images/avi.jpg)