0 votes
by
retagged by

[Reformulated after clarifying the question in the comments]

In manual transmission with friction disc clutch, gears can be engaged even when clutch is not pressed. This causes a running engine to stall if a gear is engaged when the vehicle is stopped (as clutch is not pressed).

In a car with this setup (manual + friction disc clutch), gear shift should not be allowed if clutch is not pressed.

[Original question]

About the problem of manual stop vehicle stalling

Manually block the vehicle. When the car is running (always on the throttle), I will hang the gear and the vehicle will not turn off.

But when I first started the vehicle (when I was not driving), I did not step on the clutch when I was in the gear, and the vehicle would turn off directly.

I found that the value of the flameout is read-only. How do I get the vehicle to turn off directly when I stop the gear without stepping on the clutch?

by
Sorry, but I can't understand the problem.
- What's the "flameout"?
- What do you mean with "hang the gear" and "stop the gear"?
by
# Please forgive me for not being clear

I mean, when I drive a manual, I don't press the clutch At this time, the upshift and downshift operation is carried out directly, which causes the engine to stop working (stall)
by
Your problem is "Clutch". I think u using "Torque Converter", change to "Disk Friction" and your car will stall.
by
I know the specific function of this clutch type
Imagine, in reality. Driving the vehicle with manual gear and continuously pressing the accelerator, it is not allowed to increase or decrease the gear at this time, but the current state is feasible, which is unreasonable. Direct upshifts and downshifts will not stall.
by
I'm still trying to understand the question. Here I'm describing a VPP-simulated car with manual transmission:
- Gears can be shifted anytime, no matter the state of the throttle and the clutch.
- If the car is stopped with the engine running in Neutral, then engaging a gear may cause the engine to stall.
The above are the expected behaviors in the simulation.
by
BTW, if your language is supported I really recommend you to use DeepL Translator (better than Google Translate):
https://www.deepl.com/translator
by
It does not support Chinese
I have no doubt about the simulation process of VPP.
I'm thinking about how to be strict with this process
For example, when the accelerator is pressed, the clutch is not pressed. At this time, upshifts and downshifts make the vehicle stall
by
So if I've understood you correctly:

You want that the user can gear shift up and down only when clutch is pressed. If clutch is not pressed, the user shouldn't be able to change gear.

Is this correct?
by
Yes, as you said

1 Answer

0 votes
by
edited by
 
Best answer

Currently in VPP the clutch is not required to engage or shift gears. 

A simplified solution could be implemented by writing a custom input script that monitors the device (Unity Input, device input, Rewired...) and pass the input values to the vehicle via the data bus. The gear shift events may then be passed along to the vehicles only if the clutch is pressed more than a threshold.

Check out the component VPVehicleToolkit, which includes handy methods to send inputs to the vehicle from scripting. You may also check out the source code of VPVehicleToolkit for reference.

A proper clutch simulation that accounts for this effect is planned for a future development, but a proper solution is not trivial. It requires to compute the detailed rotating state at both sides of the clutch and determine whether the clutch is disengaged enough (it's not an on/off state) to allow the mechanical gears to engage.

...