Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

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.

Did you find this page useful? Please give it a rating: