- Home /
The question is answered, right answer was accepted
How to reset child object's transform
I've been trying to deal with hinge joint problem and I am about to give up. I'm not entirely sure where the problem is coming from.
I've made a door mechanic which works perfectly fine, but the door itself gives me a hard time.
I think it's because of these child object transform values:
Is it possible to reset these values without changing the child object's position?
This is what happens when I open/close the door, all child objects go around something else, not the hinge joint itself!
Any ideas on what may cause this, or how to solve?
Regards.
If u want those values to be all zero try putting an empty object in that position then adding everything to it now there localposition should be all zeros if not you can change them manually.
Answer by Tanshaydar · Feb 16, 2014 at 09:12 PM
Apparently that is all related to model itself, and no other way to fix this. Creating empty game objects doesn't make it work. I even tried to put some cubes in place of rectangular models, but still no luck. I reworked models, combined every sub-mesh into one single mesh and re-put everything (rigidbody & hindejoint & collider).
Now it works as intended.