Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WheelCollider.motorTorque

Switch to Manual
public float motorTorque;

Description

Motor torque on the wheel axle expressed in Newton metres. Positive or negative depending on direction.

To simulate brakes, do not use negative motor torque - use brakeTorque instead.