Hello everyone. Could someone suggest me a good java script that could help my objects(Enemies) disappear while camera (player) is no longer looking at it, or it went out of the object range.
Thank you for your time
-Metalbreathe
Hello everyone. Could someone suggest me a good java script that could help my objects(Enemies) disappear while camera (player) is no longer looking at it, or it went out of the object range.
Thank you for your time
-Metalbreathe
You need M2H Occlusion culling. Although i don’t know why you would need to disable an enemy?
Couldn’t you just disable the renderer if rayshots don’t hit an object with a certain tag (e.g., “enemy”)? And if they are too far away, manually set a view distance for the player as a variable, and if an object with the tag of enemy exceeds it, disable the renderer? I’m not sure if this would work or not, I’m just speculating lol