I would like to know what is the way to find if an entity is visible or not to camera when user navigates in 3d space in visionOS.
When user navigate through 3d space, if a specified entity is visible then I want to put a log as visible and if goes out of view then log should put not visible as a message.
I'm not able to figure how can we determine this. Can someone help me?
In Compositor Services framework, there was a tangents instance property that contained tangent values (SIMD4<Float>
) for the angles you could use to determine the camera's invisible planes of the viewing frustum
. Now it's deprecated. No replacement has been announced so far. In other words, you don't yet have a tool to calculate whether your model falls inside the frustum
or not. Let's wait for new updates.