i want to connect a caravan to my car put i didn´t get it…
i tried it with the stick grenady script, using a hingejoint, but it wont work
is there sombody out there who could explain to me in which direction i should go?
parent an empty game object on to your car at “towball” location. use what ever method to parent caravan onto there to connect. Id love to see a pro write that script because no matter how many threads I read about parenting thru scripting it still doesnt seem straightforward. Thats how in theory.
What do you want to do? If your car has a rigidbody and the caravan has a rigidbody, you can use a hinge joint and it should be pretty simple.
If you want to create your own physical relationship between the two entities with a script it will be hard and I am not ready to write an example.
If they don’t have to turn, then it is easy. Grab the caravan object in the hierarchy pane and drag it onto the car object. Now the caravan is part of the car and will follow it around.