- Home /
Question by
michaelwangitc · Aug 01, 2017 at 09:07 PM ·
screenscreentoworldpointrectangleboundingbox
Accurate On-Screen Bounding Boxes
Does anyone have ideas for how to draw a tightly fit on-screen bounding box on a 3D gameObject?
Other threads like this one mention using Renderer.bounds or something similar, but this often makes the bounding box overestimate the actual bounds of the object, especially when the object is rotated. However, I am looking for a way to draw bounding boxes so that the boxes on screen fit tightly around the gameObject, regardless of how the object is rotated.
Comment
Your answer
Follow this Question
Related Questions
WorldToScreenPoint teleport left 1 Answer
Bounds vs. Rectangle 1 Answer
Regarding ScreenToWorldPoint y 0 1 Answer
How to set screen boundaries on a moving camera 1 Answer
iPad touch is offset! Unity2d. 2 Answers