--function adjustStrutSpring( strutSpring, gravityChange )
--	strutSpring.Stiffness = springStiffness
--	strutSpring.Damping = springDamping
--end


function setMotorTorque(torque)
	for _,m in pairs(motors) do
		m.MotorMaxTorque = torque
	end
end

function setMotorTorqueDamped(torque)
	for _,m in pairs(motors) do
		local r = math.abs( getMotorVelocity(m) / maxSpeed )
		m.MotorMaxTorque = math.exp( -3 * r * r ) * torque
	end
end

