So I decided to try to make a Monster Jam inspired monster truck game with Chaos physics because why not.
I’ve seen a few topics in the forum about using chaos vehicles and “drifting” being impossible. Well, I figured I would get a dot product of the forward vector and the velocity. At this point, I’m just stuck on what the next step is. I want to provide forward force on the mesh (which is simulated, due to the way chaos vehicles works), without changing much anything with my torque curve and my friction. At the moment, when the truck turns sideways, it just slides into the wall with only a little bit of forward momentum. Anyone have any ideas?
For reference; I have the throttle pinned when it’s sliding sideways like that first turn, and it has something like 1600 torque. In real life, those tires should be absolutely spinning, and digging through the dirt to get traction.
However, if I add any more friction/torque, the truck immediately flips as soon as you hit the accelerator. I’ve played with setting for the last couple days to work around this, but nothing in the actual chaos vehicle settings seems to work. It doesn’t let the tires “break free” and spin while skidding, which would theoretically give more forward momentum even while completely sideways.
Granted, this is my understanding of physics talking, and not the code of the engine/plugin. At any rate. I figured I would use the “Add Force” node to push the truck in the direction the mesh was facing, but figuring out exactly what numbers to be plugged in where is proving difficult. When looking at the mesh in the content browser, forward shows to be the ‘+X’ axis.