Quantcast
Channel: Questions in topic: "quadtree"
Viewing all articles
Browse latest Browse all 16

Detect if bounds are "partially" inside camera frustum

$
0
0
So I'm using the useful convenience methods within Unity's API to find if my object is inside the camera view frustum, but I'm wanting to detect if it is partially inside. I'm creating my own quadtree culling system. public void Update(){ planes = GeometryUtility.CalculateFrustumPlanes(Camera.main); if(GeometryUtility.TestPlanesAABB(planes, renderer.bounds)){ Debug.Log("is inside"); } else { Debug.Log("isn't inside"); } } Anyone got any ideas or will I have to create my own TestPlanesAABB method?

Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>