Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

WheelCollider.motorTorque

Switch to Manual
public var motorTorque: float;

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.