Co ordinates of 2D object/image,Get Co ordinates covered by Object
Hello , I am sure this is a super simple and silly question but i am not sure which direction to look at. So i have a shape object in my scene. Initial position is set to x=10,y=10,z=10. I was wondering how do i get the coordinates of the four corners of this. It will be a 2D square always so that makes it easier. My goal is to see if i gave a point (x,y) does that point lie within the boundaries square, the co ordinates of the square change during the scene , i.e i do move the object around.
Your answer
![](https://koobas.hobune.stream/wayback/20220613035113im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Ignore collisions with water if ground above water 0 Answers
Setting points of edge collider 2D from script 0 Answers
Trigger Collinder doesnt work with Input.GetKey 1 Answer
Character hits invisible ghost collision when jumping against objects while pushing against them 0 Answers
Sprite 2d passes through the ground 0 Answers