Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. @name SimpleTorque [PcmciaKai]
  2. @inputs Accelerate Reverse Wheel:entity
  3. @outputs Wheelvel
  4. runOnTick(1)
  5. Wheelvel = Wheel:angVel():roll()
  6.  
  7. # Change the vector (e.g. vec(1,0,0) right after the applyTorque to fit the rotating axis of your wheel master
  8. # If you needed to change that, you need to change line 5 as well, its either pitch, yaw or roll, that works
  9. # Change the number behind that vector to set an angular limit for the wheel
  10. # Change the multipliers behind Accelerate and Reverse to change acceleration speeds
  11. Wheel:applyTorque(vec(-1,0,0)*((3600-abs(Wheelvel))*((Accelerate*25)-Reverse*15)))