Scripting API

SliderJoint2D

class in UnityEngine · UnityEngine.Physics2DModule · inherits from AnchoredJoint2D

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

Translation along a line, with an optional motor and limits.

Properties 10

float angle { get; set; }

Degrees: the line's direction.

bool autoConfigureAngle { get; set; }
float jointSpeed { get; }
float jointTranslation { get; }
JointLimitState2D limitState { get; }
JointTranslationLimits2D limits { get; set; }
JointMotor2D motor { get; set; }
float referenceAngle { get; }
bool useLimits { get; set; }
bool useMotor { get; set; }

Methods 1

float GetMotorForce(float timeStep)