Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


maxTorque

The maximum torque that can be generated when trying to maintain the friction joint constraint.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float maxTorque { get; set; }

Remarks

The joint constantly tries to reduce the ::Rigidbody2D::angularVelocity using the maximum torque. Because you can use very high torque limit, you can essentially reduce an objects rotation to almost zero.
Additional Resources: FrictionJoint2D.maxForce, ::Rigidbody2D::angularVelocity.