Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SliderJoint2D

Joint that restricts the motion of a Rigidbody2D object to a single line.
Read time 7 minutesLast updated 6 days ago

Definition

public sealed class SliderJoint2D : AnchoredJoint2D

Remarks

Properties

Property

Description

angleThe angle of the line in space (in degrees).
autoConfigureAngleShould the
angle
be calculated automatically?
jointSpeedThe current joint speed.
jointTranslationThe current joint translation.
limitsRestrictions on how far the joint can slide in each direction along the line.
limitStateGets the state of the joint limit.
motorParameters for a motor force that is applied automatically to the Rigibody2D along the line.
referenceAngleThe angle (in degrees) referenced between the two bodies used as the constraint for the joint.
useLimitsShould motion limits be used?
useMotorShould a motor force be applied automatically to the Rigidbody2D?

Methods

Method

Description

GetMotorForceGets the motor force 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.