Hi,
I'm setting up a racing game, a till now i was tuning a vehicle as a base for others. So, till now i had a race track with a vehicle... all working fine
I started then to introduce my AI cars, so i've added some more cars to the game, for testing.
It performs quite well, except a weird behavior that is very annoying... it seems that there are some issues with suspension raycasts, that affects other cars than the one that is being "raycasted".
I've done many tests, and can't figure out what the problem is... a simple test is:
- having X vehicles, apply a vertical impulse (Vec(0,100,0), for example) just to one of them (vehicle A, for instance)
- so, vehicle A flies as expected, but the problem is that some of the other vehicles, just sink in the floor and are not drivable anymore
- but, when the vehicle A drops to the floor, the other vehicles suspensions are now Ok again, above the floor
- worst case is if a vehicle just drops in a floor whole and his gone, the other vehicles sink again and will not recover anymore
So, it looks like, when raycasts of a vehicle just don't return a hit (or returns invalid data), that somehow affects the other cars suspension raycasts... if the floor is irregular, one car climbing a surface for example, it affects other cars raycasts...
Any idea of what could be wrong?
Thanks!