- Home /
how to move hinge joint anchor with the object?
I am building a simple endless level with script i found here http://forum.unity3d.com/threads/183638-Endless-Terrain
so all my objects are children of terrain and get relocated according to player location (at least that is how i understand what the script is doing) - this works without problems - except objects with hinge joints on them - their anchors stays on the original location for some reason ..so the object gets pulled back to its anchor after it has been relocated. btw there is no "connected body" on my joint.
Am I doing something wrong here? and also please be patient in your answers, i am noob in scripting =)
Answer by LSPressWorks · Jul 20, 2014 at 02:21 AM
without a connected body you'd need to relocate the bodies(parent) of the hinge joint manually. When there is no connected body, unity anchors that joint to world space, immutably I might add.