- Home /
Question by
Tweetzzzzz · Nov 26, 2011 at 12:43 PM ·
objectspaceworld
How to find world coordinates within an object?
I was wondering is there already a way to find coordinates in world space that an object occupies (such as a cube for example) ?
Comment
Answer by syclamoth · Nov 26, 2011 at 02:41 PM
Yes! It depends on a few things, but you can use either collider.bounds, mesh.bounds or renderer.bounds depending on your requirements. The 'Bounds' object gives you all sorts of useful information about the world space that an object occupies!
Otherwise, I guess you can just use transform.position?
Your answer
![](https://koobas.hobune.stream/wayback/20220613054458im_/https://answers.unity.com/themes/thub/images/avi.jpg)