- Home /
Local Rigidbody.AddTorque?
I want to use Rigidbody.AddTorque to turn a wheel. However,
rigidbody.AddTorque (0.0, 0.0, torqueValue);
applies torque in the global z vector. I want it to apply it in the local z vector. What do I add to the code to accomplish this? In JavaScript, please!
I know it's a simple question, but nonetheless, the documentation is nowhere near sufficient to answer this question.
(Yes, I've searched the resources and community, and yes I know about wheel colliders) :)
Any answer is appreciated! Thanks!!
Answer by clunk47 · May 22, 2013 at 02:20 AM
Thanks a lot for answering.
I had actually found that after posting the question. I've just been testing to make sure it works.
I've marked you correct. Thanks!
Your answer
Follow this Question
Related Questions
how to rotate a Rigidbody to a target rotation using Rigidbody.AddTorque() 0 Answers
Calculate force for torque by specifying a required velocity 1 Answer
Apply force and torque on different collider enter 0 Answers
Why isn't AddTorque working on this character? 0 Answers
Returning a rigidbody back to its original x and z rotations through physics forces. 2 Answers