object.motorSpeed

Type Number
Object Joint
Library physics.*
Revision Release 2024.3703
Keywords joint, motorSpeed
See also object.isMotorEnabled
object.motorForce
object.maxMotorForce
object.maxMotorTorque
Physics Joints (guide)

Overview

Numerical value which specifies the rotational motor speed for a "pivot" joint, or the linear motor speed for a "piston" joint.

Example

if ( myJoint.isMotorEnabled ) then
    myJoint.motorSpeed = 100
end