dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.89k stars 242 forks source link

Add Ability to Control Side-to-Side Grip / Forward Grip of Raycast Vehicle Wheels #468

Closed aunyks closed 1 year ago

aunyks commented 1 year ago

These changes add a struct item to Wheel and WheelDesc to allow users to control how much lateral grip a raycast vehicle's wheel can have. Lower values [0-1) give an effect similar to sliding or drifting. Before these changes, the effective side friction stiffness was 1.0.

They also make Wheel's friction_slip property public so it can be changed after wheel creation.

Also fixed a small spelling error in some doc comments in the raycast vehicle source file (his -> has).

sebcrozet commented 1 year ago

Thanks!