- Home /
Mesure visible surface of an object
Hello everyone, need a bit of help
I've been trying to work a surface-detector. The goal would be to measure the surface of an item facing a certain direction. (take a cylinder for exemple, the surface facing you changes depending on if you look at the top, bottom or side) But I need it to be runtime. So if I modify my item, or add children to it, it changes the value, like in the picture below.
I tried going simple, and adding the surface of each child, but it also add those "behind". And those should not count. (once again, in my picture you could imagine a second hidden children, it doesn't influence the "visible surface") I looked up about occlusion culling, because it's sorta what I want, and I imagined maybe a camera facing my scene and adding only the children the camera sees, but I'm not sure how to go about it or if it would be efficient...
thanks in advance (hope I made sense ^^)
Your answer
![](https://koobas.hobune.stream/wayback/20220612111517im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Compute New Surface from Old Surface? 1 Answer
How to calculate the RPM/Rotation speed of an object? 2 Answers
How to calculate the amount of Change of Position.Y for a certain amount of time. 0 Answers
Hiding Objects Not Working (Active/Enable) 2 Answers
Problems with Game object visible when active is false 2 Answers