Attach trailer to the truck?

Hello Developers out there, i have a few questions to ask about?
1st: while i attach the wheel collider to the trailer’s wheels, will the script for the wheels of trailer goes with the “Additional Rear wheel” section of the truck?
2nd: im able to move the trailer along with truck, but as i provide it some limitations (Min-Max) to the trailer, its body keeps on rotating about the axis, but its wheels doesn’t go with its body, although they do remain in the parallel with the truck wheels.

any ideas plz? Or atleast help me to make a setup in order to attack the trailer to the truck? thanks

You will need to give more information about WHICH TRUCK you’re talking about.

You mean “attach” not “attack.” How to do this depends on the way the truck is modeled.

yea sure its “attach” i was intended to write!

anyways Its here shown right below
3602219--292498--truck.png

is that ok to reveal the info about the model? or what more i can help u out with?

This question rather belongs to scripting section.

You want to use scripts, to link truck and trailer with joint. You want ball joint effect.

Perhaps that. But i wrote a script to dynamically joined the truck and trailer.
Still it doesn’t work so smoothly! i couldn’t pass any limits to it, rather it stays at 0 degree of axis because providing the min-max limits makes it circling around the Joint area continuously (as it never spots )

My advice is that you use Unity joints. Hinge joint or Configurable joint should work. If you want more control, you could write a script wrapper of your own that uses those Unity Joints