0 votes
by
Hi there,

I see that 'K' is the default ignition start and 'Ctrl + K' is off. Is there a way to map the ignition off with a single key or even better use the same key to turn off? I cannot figure it out. Let me know if you can help.

Brandon

1 Answer

0 votes
by
It's handled that way in the VPStandardInput component. You may change the key, but Ctrl-<key> is the method to switch the engine off in this component.

You may disable the ignition key in VPStandardInput (assign it to None), then write your own procedure for switching the engine on and off by sending the input directly to the vehicle via the Data Bus:

https://vehiclephysics.com/advanced/databus-reference/

The source code of the component VPVehicleToolkit demonstrates how to switch on and off the engine. You may use it as reference, it's available here:

https://vehiclephysics.com/components/vehicle-toolkit/
...