So, it kinda sounds weird. But i have this Pushback Tug (See Image Below). It uses the known A-Chassis Tune. And i want it like this:
I have a GUI in the DriveSeat as when the player clicks on a button. The welding will start (So it’ll search for a landing gear part), I also have a part attached to my towbar called Platform. That’s the area for the gear, to weld to my towbar.
When the player drives up to a landing gear part (mostly the front gear) It’ll weld to the gear and you can drive the plane to its position. (What’s called Pushback(ing))
After you have placed the plane on its position. You can unweld it and drive away.
But, what is my problem?
I have no idea how i should make something like that.
Some things i have tried so far:
I have tried myself doing inspiration from other free models - All failed…
I tried looking on YouTube and Google - Nothing Found
Here on the DevForum - Didn’t found what i wanted.
Asked one of my friends who are better known at scripting than me - Couldn’t help me.
I hope somebody could help me, thank you for reading!
I would also recommend finding a way to use a constraint such as a hinge constraint. This would allow for the plane to move independently from the tug, and give it that illustration like you are pushing a trailer back.
On a separate note, that is a really nice pushback tug
I would approach this by making two hitboxes, one on the tugs’ attachment point and one on the planes’ landing gear. Have a script in the tug listen for a .Touched() event and see if the two hitboxes are touching. If they are, snap one to the other (probably the tug to plane) and create a flexible joint like @SJxseCA mentioned - a weld would really stiff to maneuver with. Have this tied to the GUI button with some boolean to tell whether the player is trying to make the attachment or not.
*I’d also let the hitboxes be generously oversized so it’s not too difficult to line up
I’ve promised you, that I’ll let you know about how it goes. Well, it works… but also not.
It attaches it to the plane, but the plane doesn’t move. I know the plane isn’t anchored, and it’s able to move around, just the car doesn’t have enough power to move it around smoothly. It’ll just go very, very slow now.