rotatebod=False
'Dim jd As lgBox2DRevoluteJointDef - This has been moved the Globals so I can enable the motor in the LG_Update sub
jd.bodyA = groundBody
jd.bodyB = body
jd.localAnchorA.set(0, 10)
jd.localAnchorB.set(0, 0)
jd.referenceAngle = 0
jd.motorSpeed = 0 '0.5 * cPI
jd.maxMotorTorque = 1e8
'jd.enableMotor = True if this is uncommented then the body rotates immediately
jd.enableMotor=False
World.CreateJoint(jd)