Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Joint2D

Parent class for joints to connect Rigidbody2D objects.
Read time 6 minutesLast updated 2 days ago

Definition

[RequireComponent(typeof(Transform), typeof(Rigidbody2D))]public class Joint2D : Behaviour

Remarks

Additional Resources: AnchoredJoint2D

Properties

Property

Description

attachedRigidbodyThe Rigidbody2D attached to the Joint2D.
breakActionThe action to take when the joint breaks the breakForce or breakTorque.
breakForceThe force that needs to be applied for this joint to break.
breakTorqueThe torque that needs to be applied for this joint to break.
connectedBodyThe Rigidbody2D object to which the other end of the joint is attached (ie, the object without the joint component).
enableCollisionShould the two Rigidbody2D connected with this joint collide with each other?
reactionForceGets the reaction force of the joint.
reactionTorqueGets the reaction torque of the joint.

Methods

Method

Description

GetReactionForceGets the reaction force of the joint given the specified
timeStep
.
GetReactionTorqueGets the reaction torque of the joint given the specified
timeStep
.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.