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.

JointMotor.targetVelocity

public var targetVelocity: float;

Description

The motor will apply a force up to force to achieve targetVelocity.

	// Achieve 10 m/s.
	hingeJoint.motor.targetVelocity = 10;