Scripting API

TargetJoint2D

class in UnityEngine · UnityEngine.Physics2DModule · inherits from Joint2D

7 of 7 of Unity's membersUnity's documentation
In Tassix

Pulls the body's anchor toward a world target, like a mouse drag.

Properties 6

Vector2 anchor { get; set; }
bool autoConfigureTarget { get; set; }
float dampingRatio { get; set; }
float frequency { get; set; }
float maxForce { get; set; }
Vector2 target { get; set; }

World space. While autoConfigureTarget is on, the anchor's current position.