Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

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. Positive or negative depending on direction.

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

	// spin the wheel forward

collider.motorTorque = 10;