Solved Separate motor from vehiclecontroller

Discussion in 'Mod Support' started by Solid_Granite, Dec 18, 2017.

  1. Solid_Granite

    Solid_Granite
    Expand Collapse

    Joined:
    Nov 25, 2017
    Messages:
    27
    Hello there! I am building a car with a combustion engine to drive the wheels, and an electric motor to spin some other part. The problem is that the electric motor seems to be governed by my input commands, i.e it won't spin up unless I accelerate the car.

    How can I isolate this electric motor from what I assume is the VehicleController?
     
  2. Solid_Granite

    Solid_Granite
    Expand Collapse

    Joined:
    Nov 25, 2017
    Messages:
    27
    Thanks, I got that far and it does work kind of, but it won't spin up unless I accelerate the car and when I stop the car the clutch of the electric motor disconnects. If there was no generic vehicle engine it would work okay, like the quad copter. I guess my next step is to see if the clutch can be manually controlled too.

    EDIT 8 hours later: I just solved it! simply by putting the following lines in:

    "clutchname": {
    "electricsClutchRatioName": "clutchy",
    },

    ... the motor spins the thingy correctly. You don't even need to call "clutchy" or assign a key. Just having it in there solves the issue.
     
    #1 Solid_Granite, Dec 19, 2017
    Last edited: Dec 19, 2017
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice