Scripting API

WheelJoint2D

class in UnityEngine · UnityEngine.Physics2DModule · inherits from AnchoredJoint2D

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

A wheel on a spring suspension, free to spin, with an optional motor.

Properties 7

float jointAngle { get; }
float jointLinearSpeed { get; }
float jointSpeed { get; }

Degrees per second.

float jointTranslation { get; }
JointMotor2D motor { get; set; }
JointSuspension2D suspension { get; set; }
bool useMotor { get; set; }

Methods 1

float GetMotorTorque(float timeStep)