Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

JointMotor.targetVelocity

var targetVelocity: float;

Description

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

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