- Home /
Question by
unity_RiVn7CRn_nr2vQ · Sep 23, 2018 at 11:57 PM ·
script.tree
How to get position and normals of Tree-Leaves?,How to get locations of Leaves on any Tree?
HI. I need to access the points of location of leaves and their normal vectors programmatically. I intend to animate my camera from leaf to leaf on the fly. I don't want the tree to be game object. I just need the runtime position and normals of nearest leaf(s) to the camera. I couldn't find any API endpoints for Leaves inside the tree. Can someone point me in a direction to work it out.
Thank you very much.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612175134im_/https://answers.unity.com/themes/thub/images/avi.jpg)