What is the ideal MaxTorque, D and P for a body Gyro to turn HumanoidRootPart?

Im trying the make mooooves

Sometimes when i use body gyro I have to keep changing those properties and testing, it would be helpful if I knew how to calculate it for once.

I’ve searched about but found nothing.

1 Like

The easiest way is to test. But for P and D at least, there are algorithms out there for auto-tuning them, I just don’t know how’d you apply them to roblox.

If you really want to go down this rabbit hole, the google term you’re looking for is “PID controller auto-tuning” or maybe just “PD controller auto-tuning”.

It’s a complex topic.

1 Like

As @nicemike40 said, this relates to PID controllers, which are hard to tune. While P and D stand for “proportional” and “derivative,” you could also think of them as “power” and “damping,” where power is how much force is put into the operation and damping is how smoothed out the operation becomes. (In fact, the Roblox documentation seems to improperly label those as Power and Dampening.)

The most helpful technique I’ve learned to do is to use the mass of the model (model.PrimaryPart.AssemblyMass) and use that as a multiplier to calculate the MaxTorque or MaxForce. (e.g. MaxTorque = assemblyMass * 400)

7 Likes