Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

local space position and world space position do not in code match a game object with no parent in inspector,

$
0
0
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!!! ,

Viewing all articles
Browse latest Browse all 302

Trending Articles