I have small wheel colliders (radius of 0.03 - I am simulating skateboarding wheels). However, sometimes the wheel colliders go through ramps (non-convex mesh colliders). I know that small colliders at large speeds have troubles, how can I increase the accuracy of the collisions without changing sizes (would love to keep everything at real world scale).
Thank you!
There are a few things you can try to improve the accuracy of your small wheel colliders:
-Increase the Wheel Collider’s “Solver Iteration Count” - This will increase the accuracy of the collisions but may also impact performance. You can try increasing the value to see if it helps without impacting performance too much.
-Increase the “Fixed Timestep” value in the Time settings - This will increase the frequency of physics updates and can help reduce the chance of small objects passing through meshes.
Use a convex mesh collider for the ramps - Convex mesh colliders are faster and more accurate than non-convex mesh colliders. If you can simplify the ramp mesh to make it convex, this may help with the accuracy of the collisions.
-Increase the wheel’s “Suspension Distance” - This will increase the distance between the wheel collider and the mesh collider, which can help reduce the chance of passing through the mesh. However, this may also impact the behavior of the suspension.
-Use a larger wheel collider size - While you mentioned you would like to keep everything at real world scale, increasing the size of the wheel collider slightly may help with the accuracy of the collisions without impacting the overall scale too much.
It’s important to note that perfect physics simulation in games is difficult, and it’s common to encounter some inaccuracies or artifacts. You may need to experiment with different settings and techniques to find the right balance between accuracy and performance for your specific project.