If "transform.position" seems not correctly

For the future questions;
If transform.position seems not correctly, probably you have parent object not previously set to zero.
transform.position is adding game object’s position and its parents position together. Even though you reset your game object position, if its parents position is (0, 5, 1), you will see (0, 5, 1), not (0, 0, 0).
If you don’t want to set up all scene again, create new empty game object for moving obstacles, reset its position just right now, and use it as parent after this process.
I had this problem, now I’ve just solved it. I just want to inform, hope it helps.

Thanks for sharing this reminder, @yvzslm. I’m sure it’ll help future students. :slight_smile:

Yeah I hope :slight_smile: thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.