Hi Fred,Towing/Pushing is NOT implemented yet.
Hi Fred,
here's a thing I made some time ago for Orbiter2010-P1 (I think it should work with Orbiter2016) - it's a "Tractor-Trailer Hitch-Point" vessel. It acts as a link between the tractor and trailer. It should be attached to the tractor (parent) and trailer (child) at the "hitch point". It calculates the rotation of the trailer as the tractor moves, and rotates the attachment point accordingly. Can pull or push
The user must input the trailer "wheelbase" (distance from hitch point to rear axle) in the tractor_trailer.cfg file.
For vehicle vessels where z=forward, y=up, then:
The tractor hitch-point attachment should have the following orientation
BEGIN_ATTACHMENT
C x y z 0 1 0 0 0 1
END_ATTACHMENT
The trailer hitch-point attachment should have the following orientation
BEGIN_ATTACHMENT
P x y z 0 -1 0 0 0 1
END_ATTACHMENT
I'm not sure how well it works if the tractor hitch-point is very far from the vessel origin(0,0,0), you might need to add code to account for that. Not sure (been a while since I looked at it!)
EDIT: Yes, it should have an extra term to account for a tractor hitch-point that is not at the tractor centre of rotation. I might have a go at that later today
Don't know if this is a help, code included in .zip. Once you have the trailer "wheelbase" and tractor velocity vector, it's just simple geometryGood luck!
Ok. So how many wheels can it have? My LER has 6. But I think if someone wanted a Semi it has more than 4.
I will figured out what the wheel animations are.
Yes. I can but it will take me a couple of hours til I get home.
The mesh is here though:
https://www.orbithangar.com/searchid.php?ID=6997
I have 2 suggestions :
1) for the steering wheels, I think it would be better to keep the wheels steady as long as the 4 or 6 key is pressed, and that the wheels come back straight by releasing the key.
Yeah, I thought about it, but I don't know how to relate the sound with the engine level. I'll have to check on that.2) The engine sound is missing ... Would that be possible?
:tiphat:Anyway, in my opinion, it's great !!! :tiphat:
It's possible, I'm just afraid to overcomplicate things for the final user with too many parameters... I'll give it a try, something like a parameter called "4_Wheels_Steering=TRUE" and that's it.This steering config would be useful for rovers and such. BrianJ may be able to help you with this also.
For me 6 wheel steering would be great. But I think once the code is released I can add that.
Also maybe a no wheel version might be good if someone wanted to do a person mesh?
I might try it with a motorcycle
It won't lean. It's possible to make it lean, but you have to calculate properly the lean angles then. It could be the next module if we find the way to calculate the lean angles.
Got wheels ?? :rofl:
Would be good, to be able to attach a vessel to the chassis, to do animated stuff.
Wow!!! Thank you very much! I'll give a deep look at it!!!OK, there we go. Attached is a much better tractor-trailer hitch-point vessel. Can handle tractor attachment point offset. Disregard the previous package. Code included, cleaned up and commented as much as possible.
Thanks for making me revisit this project and get it working properly![]()
That would be an SPMT (Self Propelled Modular Transporter.Got wheels ?? :rofl:
No more than 6 will be coded.