Yeah I thought it was an interesting problem, as up to this point, you couldn't really put in a working trailer.Theoretically I think maybe I could do a trailer. I'd have to see how some of the scriptfuncs actually work though.
Very interesting problem
Do you happen to have any trailer models or am I gonna have to start pulling around Lamborghinis? I'm thinking export the trailer as a car, with no driven wheels on the ground.
EDIT:
First foray into it - finding a bit of a problem. The following
Is fine, works on cars. I can move them around all I want.Code:set (pbody) pos (float[3])
This, on the other hand
Doesn't seem to have any effects. Unless the units are some small thing, and 10,000 is not enough to visibly affect the vehicle.Code:add (pbody) bodyforce (float[3]) at (float[3]) Comment: Adds bodyforce of physics-body at body position
My intention was to add forces located at the trailer hitch, pulling the two cars together, but that can't work as is.
I'll try some alternatives tomorrow. A wing with the appropriate downforce/drag would work, but is a pretty huge kludge to attempt.
I don't have any trailer models at the moment, I could probably fab one up, or find one online, but I'll do that tomorrow.
Yeah a wing with a bunch of downforce would work, if the vehicle was in motion, otherwise it would sit like there was nothing, of course set it too high and you'll have issues driving at higher speeds. Of course since i know nothing about scripts, I'm useless lol