Game dev question: What's a good method for checking if an object (the player) is completely occluded from view? Currently I'm doing raycasts from camera to points at edges of the mesh. If all raycasts fail to hit = not visible. Is there a better (more efficient) way to do this?
-
-
I think this would only work if checking if the player is at all occluded. Not sure there’s a nice way to check if fully occluded
-
You could make your version more efficient at least by having a bounds collider and using collider.raycast to only try to hit that box. Then you could fire many rays and be more accurate
- Antwoorden weergeven
Nieuw gesprek -
Het laden lijkt wat langer te duren.
Twitter is mogelijk overbelast of ondervindt een tijdelijke onderbreking. Probeer het opnieuw of bekijk de Twitter-status voor meer informatie.