Hello,
It might have been asked earlier, but the question is not answered yet.
I have a hobby vehicle simulation I've been doing in my free time and now I have some spare time to work with that again.
The main situation:
My simulation is running at 1000Hz
I use a custom swept-box collision with the environment, that is not satisfactory, sometimes inaccurate and not fast, it's ok for one car though.
I started playing around with bullet (again) and wondering if it could be used for collision and simulating other rigid bodies.
My concerns:
The bullet (and all other physics engines) run on low frequency 60Hz usually.
My suspension and tire simulation needs higher frequency therefore the car's body must also be updated 1000times a second.
And the problem is, it needs to collide with the environment, the other cars, and occasionally dynamic environment objects.
I tried setting the internal timestep of bullet to 1000Hz, but that way a bunch of boxes and convex hulls ate up most of my cpu time, so that's not an option.
I also tried having a "dummy" dynamic object with no gravity that is updated according to my simulation (setting transform, linear and angular velocity that I calculated)
It worked "somehow" but the collision response was weird and also sometimes it sank into static geoms and occasionally went through them.
The kinetic body works "perfectly", but it doesn't collide with the environment also the dynamic bodies are just pushed away regardless of their mass. So, also useless.
I'm also thinking of not modifying the bullet's body directly but adding forces/impulses to translate it to the position that I calculated. I'm not sure if it could work.
So, does anybody here have any experience with this kind of issue?
I read about ghost objects, but it's quite hard to find usefull info on how to use them for this kind of purpose.
thanks in advance for any help or idea.