Wheel Settings mLongitudinalFriction #1321
Replies: 3 comments 2 replies
-
Tested with a flat curve for mLongitudinalFriction and it seems to work better, no wheel skidding when accelerating. So maybe this is a straight-up bug? |
Beta Was this translation helpful? Give feedback.
-
There was a bug in that system before, see: JoltPhysics/Docs/APIChanges.md Line 36 in 21ba054 There's a workaround to get the old behavior back: I agree that the wheels are skidding much more than they used to do, but that's explainable as the friction was 'num solver iterations' times higher than what was configured. I also thought the new behavior felt buggy, so I configured a vehicle in PhysX and compared it with Jolt and the results looked very similar. The setup was to have a vehicle in 1st gear and to floor the gas pedal for 5 seconds: I don't remember the meaning of all these stats anymore (forgot to write that down), but I think Ffront/Fback is the force of the wheels on the ground, RPM is engine speed, Front/Back are probably wheel rotation speeds, Vel is vehicle velocity, Slip is the slip ratio of the driven wheels. |
Beta Was this translation helpful? Give feedback.
-
And to answer your question:
When slip ratio is zero, the wheel is rotating to match the ground speed perfectly. Friction can only exist if they move at different speeds (otherwise the rubber of the tire does not experience any longitudinal forces from the road), so the curve should be zero for a slip ratio of zero. |
Beta Was this translation helpful? Give feedback.
-
Hi,
It seems that the wheel friction behaviour has changed in a recent Jolt version (am updating), so am looking at mLongitudinalFriction again. it's confusing to me though - the commented behaviour is
"///< On the Y-axis: friction in the forward direction of the tire. Friction is normally between 0 (no friction) and 1 (full friction) although friction can be a little bit higher than 1 because of the profile of a tire. On the X-axis: the slip ratio (fraction) defined as (omega_wheel * r_wheel - v_longitudinal) / |v_longitudinal|. You can see slip ratio as the amount the wheel is spinning relative to the floor: 0 means the wheel has full traction and is rolling perfectly in sync with the ground, 1 is for example when the wheel is locked and sliding over the ground."
But shouldn't friction be highest when there is no slipping? e.g. when the slip ratio is zero?
As it is the default curve goes through the origin, e.g. friction is zero when slip ratio is zero:
Or am I misunderstanding something?
Beta Was this translation helpful? Give feedback.
All reactions