I duplicated BoredEngineers track and N wheeled tank setup for a 2 (and then as you can see I tried 4 in the video) trailer for a simple farming simulator remake I’m doing as a pet project among many others that involve custom vehicles.
I got to this point. As you can see the actual “Hitch” works perfectly but once I start turning the wheels go bonkers.
I started with just 2 wheels in the rear as I originally watned but it was even worse.
My trailer bodys pivot point is right at the hitch, BoredEngineers tank bodys mesh “Body” is center-bottom. Could this be the issue?
I’m thinking of making both wheels one whole mesh and then constrainting it to 2 “roller bearing” physics constrints.
As you can see if I can get over the rolling wheel problem I’m off to the races, no pun intended.
The only fix I had was to set the rotation of the axles (the cones) to 0,0,0 every frame but that only allows it to move in one direction, otherwise it stays rock solid. Maybe I need to set their rotation based on the rotation of the body then?
Any ideas would be greatlyt appreciated.
Thanks.
Edit: I took the above idea and as you can see it works well but any glitch causes it to go bonkers. When driving straight (+x) it seems much better. Do the physics constraints when locking an axis of location/rotation take world rotation into account when turned in the world or is it relative and thus locking/freeing one axis makes it become hte inverse when turned into another axis?
Would I have to have it set which of the 6 constraints are set and when limited by how much when the vehicle goes from driving +X to say +y or -y or -x?
Here you can see the results of setting the rotation to the world rotation of the actor