For my game, I need to detect certain parts with the name of “Target” that are in the camera’s view.
The function needs to be updated consistently and efficient to keep up with the camera’s movements. I’ve looked on the Dev Forums and Dev API and can’t find any help. Please help me find a way to complete this.
1 Like
You can iterate over all the target parts and use WorldToScreenPoint on their position to see if each part is visible in the camera frame.
Here is a thread I posted in the past that is somewhat similar to what you are trying to do:
2 Likes