PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

MaxTorque

TorsionSpringConstraint

float

This property determines the maximum torque supported by the spring. The value defaults to 1000.0.

What is torque

Torque is equivalent to a force applied over a distance (T = force * distance). The same way that applying a force translates into pulling/pushing an object, applying a torque results in rotating the object.

Setting the MaxTorque

In the example below, you can change the maximum torque provided by the torsion spring as follows:

torsionSpring.MaxTorque = 300