![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | MyGrandfather |
I am working on a racing game where the player controls the car by placing dots on the screen and the car drives towards them. I’m using the physics engine so the car slides around and looks more natural but their doesn’t seem to be enough friction.
When my car misses a dot it will begin to basically orbit the object several times before finally colliding with it. I was hoping if somebody knew of a way to increase friction so the sideways movement would be reduced so instead of orbiting around an object it might just slide past and then be able to recover and come right back and hit the target. Maybe somebody has a better idea that doesn’t rely on friction too.
physically friction cannot be greater than 1.0
supper_raptor | 2020-04-22 06:28
You should add more friction directly in your physics code, instead of increasing the friction above 1.0 as that’s physically impossible.
Calinou | 2020-04-22 14:36