Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


linearOffset

The current linear offset between the Rigidbody2D that the joint connects.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 linearOffset { get; set; }

Remarks

The joint will attempt to maintain this linear offset between the connected Rigidbody2D using a maximum force specified by RelativeJoint2D.maxForce.