NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.2k stars 809 forks source link

wheels slipping #424

Open funix0 opened 3 years ago

funix0 commented 3 years ago

hi team, When the car speeds up, the tires always skid at first.I tried to modify the throttle, friction, etc., and it still skidded.How to stop it from slipping. slip

msauter-nvidia commented 3 years ago

As you have mentioned already, there is, for example, friction and throttle to check. Not sure what you did with respect to throttle but I imagine you tried to increase the throttle value "slowly" over a few frames instead of setting it to 1 immediately (in a real car you don't go to full throttle within 1/60 of a second plus there will likely be assisting logic to make it smoother etc. PhysX does leave that up to the user).

Is your FrictionVsSlipGraph a flat graph?

Do you see the inverse oscillation when you look at the longitudinal slip of the other wheel on the same axle? Something like wheel0 wheel1 (+) (-) (-) (+) ...

Some other things that come to mind: