Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HingeJoint2D

Joint that allows a Rigidbody2D object to rotate around a point in space or a point on another object.
Read time 7 minutesLast updated 2 days ago

Definition

public sealed class HingeJoint2D : AnchoredJoint2D

Remarks

Properties

Property

Description

jointAngleThe current joint angle (in degrees) with respect to the reference angle.
jointSpeedThe current joint speed.
limitsLimit of angular rotation (in degrees) on the joint.
limitStateGets the state of the joint limit.
motorParameters for the motor force applied to the joint.
referenceAngleThe angle (in degrees) referenced between the two bodies used as the constraint for the joint.
useConnectedAnchorControls whether the connected anchor is used or not.
useLimitsShould limits be placed on the range of rotation?
useMotorShould the joint be rotated automatically by a motor torque?

Methods

Method

Description

GetMotorTorqueGets the motor 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.