Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WheelJoint2D

The wheel joint allows the simulation of wheels by providing a constraining suspension motion with an optional motor.
Read time 7 minutesLast updated 8 days ago

Definition

public sealed class WheelJoint2D : AnchoredJoint2D

Remarks

Additional Resources: JointSuspension2D

Properties

Property

Description

jointAngleThe current joint angle (in degrees) defined as the relative angle between the two Rigidbody2D that the joint connects to.
jointLinearSpeedThe current joint linear speed in meters/sec.
jointSpeedThe current joint rotational speed in degrees/sec.
jointTranslationThe current joint translation.
motorParameters for a motor force that is applied automatically to the Rigidbody2D along the line.
suspensionSet the joint suspension configuration.
useMotorShould a motor force be applied automatically to the Rigidbody2D?

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.