Answer by puppeteer
I may be missing something here, but isn't transform.position the actual *global* position in world space? [http://unity3d.com/support/documentation/ScriptReference/Transform-position.html][1]...
View ArticleAnswer by Bunny83
It seems you're a bit confused about what you're actually doing in your code up there. [Transform.position][1] already returns the objects world-space position. Also [Transform.TransformDirection][2]...
View ArticleAnswer by ristophonics
Similar or Same problem. I have an empty parent at (0,0,0). The parent has child gameobjects dispersed around the scene that are not at (0,0,0). The child transform(s) show (0,0,0) which I believe is...
View ArticleAnswer by KrisTUD
I'm quite sure transform.position returns position in relation to parent not the world I was gonna include screenshot as proof but the forum throws parsing error and doesn't even allow me to link it as...
View ArticleAnswer by vigneshbca1215
Actually @Bunny83 is correct! The problem is, this doesn't work inside the child's script. transform.position inside the child object's script returns local position. To get the position of the child's...
View Article