Healthbar wobbles

I built a Healthbar made of 2D Planes: a black one and a green one. I parented the green one to the black one and made the whole Healthbar face the camera (via a “Update” function in a script). Then I attached this Healthbar to a cube, which is a “playerunit”. However when the cube makes rotations with a larger angle e.g. turn around 180 degrees, the Healthbar always wobbles for a short time… this looks disgusting.

I can’t use GUI Texture Healthbars btw, because I think they are always visible on top, and I need the healthbar to disappear behind walls/geometry. Or is there any other solution for creating a healthbar without these issues?

Not sure what you mean by “wobbles”, but maybe you could put the healthbar face script in a LateUpdate so it’s guaranteed to face the camera after the cube makes it’s rotation. My guess is the healthbar is facing first, then the cube is rotating, making the healthbar rotate (since it’s a child of the cube), which causes the healthbar to be off, so in the next frame it has to realign again. Hopefully that fixes it, more details would help though.

Thanks very much!! LateUpdate() solved the wobble.