Hello, can someone tell me how to make realistic truck like this: or if you know the link to tutorial.
Your answer is not simple, there is no tutorial for creating a trailer and a rig to do it all. I will give you a hint. (Yes, I have a script which handles joining and dis-joining trailers such as the rig that you have in your video. And it works perfectly.) Create the trailer as a separate object, have a point on the trailer and the tractor which defines where they meet. When they are close, realign the trailer to match it to the trailer point. Once you are done with that.... you will want to use something like this: Code (csharp): joint=transform.gameObject.AddComponent(ConfigurableJoint); joint.anchor = fifthWheel.transform.localPosition; joint.axis = Vector3(0,1,0); joint.xMotion=false; joint.yMotion=false; joint.zMotion=false; joint.angularXMotion=ConfigurableJointMotion.Limited; joint.angularYMotion=ConfigurableJointMotion.Limited; joint.angularZMotion=ConfigurableJointMotion.Limited; joint.lowAngularXLimit.limit=-120; joint.highAngularXLimit.limit=120; joint.angularYLimit.limit=10; joint.angularZLimit.limit=10; joint.breakForce = 500000; joint.breakTorque = 500000; joint.connectedBody = connectedTo.rigidbody; Note the breakForce and breakTorque.... It will disjoin by it's self. Again, this is my code, it creates the configurable joint needed to have the rig work correctly. Will I give this entire piece out, no... It is part of what I am working on and hope to get some cash flow out of. How long did it take me. About 6 hours of coding and testing. Again, works perfectly.