- Home /
Child Objects moving oddly relative to the parent object and without input
Very new to Unity, although I still know my way around the Engine and Visual Studio, so you might have to dumb it down a little for me, sorry.
Now, I'm having an issue with a car that I am making. I made a central Cube gameobject as the parent, with the children being another cube on top of it (to be more like a real car) and the 4 Cylinder gameojbect tires. When my car is on the ground, it starts rotating strangely, with the tires stretching out for seemingly no reason (there aren't any scripts or forces acting on it at all). Also, when the car is dropped, all the gameobject fall away, so maybe that has something to do with it and I have to attach them all using some kind of welding tool. Attached here is a link to a video of the car doing this (don't worry about me changing the ground hitbox)
https://docs.google.com/presentation/d/1LmxqkohQYSHZlqgW58i-p7QA99aeIxMHF-KfDpfvY4k/edit#slide=id.p
I couldn't access your video so I'm not sure if I got the sympons right.
Anyway if you parent anything to a GameObject that has non-uniform scale (transfrom.scale) then the child will distort and cannot maintain its original form if it is rotated (without the parent). So you need to have empty GameObjects with (1,1,1) scale between the chassis and tires to prevent this distortion..
I think the gameobjects co$$anonymous$$g apart happens for different reason. This might happen if you have rigidibodies in each object and you have Physics enabled.
I suggest you to have only one rigidbody per whole car.
hope you get it working..