- Home /
Question by
Davood_Kharmanzar · Feb 11, 2020 at 06:41 AM ·
cullingdotsfrustumhealth
Entity mesh Frustum Culling?
hello,
does exists any solution to Frustum culling Entities mesh on Entities 0.5.x + Hybrid 0.3.x / unity 2019.3 ?
thanks.
Comment
Answer by mentics · Feb 12, 2020 at 12:39 AM
Here are two possibilities I can think of using the collision queries in the new physics API:
Use a mesh collider query with a mesh that is the shape of the frustum you want with start and end very close together
Use another type of query (eg. overlap or distance) inside of which the frustum fits and then filter those out using frustum plane comparisons (translate, positive dot product with plane normal)