- Home /
local space position and world space position do not in code match a game object with no parent in inspector,
well I had a game object (a) the child of game object (b) and in code i simply set it's parent to null but after this (a) game object position and rotation does not change which means it travels to another place because it's local space has changed to world space and the problem is in code when i print both local space and world space of the game object(a) both print the same value which is it's position in world space before de-parenting actually i want the game object (a) not to change it's position but it changes and unity says it has not change!!! ,
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How does Transform.SetParent() worldPositionStays work with null parent? 1 Answer
Dynamic parenting to moving platform so object won't slide from it on it own doesn't work properly 1 Answer
How to parent GameObjects to a newly instantiated empty, if at all possible 3 Answers