Quantcast
Channel: Answers for "An easy way to get the global position from a child object"
Browsing latest articles
Browse All 7 View Live

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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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

Browsing latest articles
Browse All 7 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>