How to Add Torque at Position on Object

Hey there,

I’m trying to figure out a way to add torque to a position of an object.

For example; I have a chair and I want to rotate it by the individual legs attached to the chair. I need to apply torque to the main rigidbody based on the location of the legs to rotate it, so that the body rotates around the leg position.
103014-exampledrawing.png

Kinda like how Transform.RotateAround works, however using Torque and Physics.

I’ve tried using Rigidbody.AddRelativeTorque but the results are not what I’m hoping for.

Anyone solve any issues similar to this?

Unfortunately, that’s not really a thing in physics. Torque is defined as a rotational force around an object’s center of gravity. In physics, objects will typically only rotate around their center of gravity… there is no other pivot.

So, to do what you’re asking, you need a non-physics solution.

u need non-physics solution. u can use transform.rotate

You might be able to attach a hinge joint to the leg you’re rotating around via script. Making its rigidbody kinematic should freeze it in place.

Easiest way is to alter your rigidbody’s center of gravity then apply torque normally
otherwise there would be days of headache to do it via AddForce.