C# Class UnityEngine.WheelJoint2D

The wheel joint allows the simulation of wheels by providing a constraining suspension motion with an optional motor.

Inheritance: AnchoredJoint2D
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetMotorTorque ( float timeStep ) : float

Gets the motor torque of the joint given the specified timestep.

Private Methods

Method Description
INTERNAL_CALL_GetMotorTorque ( WheelJoint2D self, float timeStep ) : float
INTERNAL_get_motor ( JointMotor2D &value ) : void
INTERNAL_get_suspension ( JointSuspension2D &value ) : void
INTERNAL_set_motor ( JointMotor2D &value ) : void
INTERNAL_set_suspension ( JointSuspension2D &value ) : void

Method Details

GetMotorTorque() public method

Gets the motor torque of the joint given the specified timestep.

public GetMotorTorque ( float timeStep ) : float
timeStep float The time to calculate the motor torque for.
return float