LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

RelativeJoint2D.linearOffset

Switch to Manual
public Vector2 linearOffset;

Description

The current linear offset between the Rigidbody2D that the joint connects.

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

See Also: maxForce, maxTorque.