Login
Remember
Register
Vehicle Physics Pro Q&A
Unanswered
Tags
Ask a Question
Ask a Question
Ignition Off Input Key
0
votes
asked
May 12, 2020
by
Brandon
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
vehicle-input
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
0
votes
answered
May 13, 2020
by
Edy
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/
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
Use new input system, make the pedal axles independent
The car always has a left input in the steering
Engine rpm as input
New Unity input integration for community version?
Progresive steering mode in Standard Input Component
Welcome to the support site for
Vehicle Physics Pro
.
Remember you can also search for information in the
VPP documentation
.
Quick links:
Getting Started
Creating Vehicles
Configuration Guide
Demos
Licensing VPP:
Community Edition (Free)
Other licenses & pricing
...