What would be the best method to determine if a part is fully in a player's view/camera? Such as a player looked at a door and it opened. Would it need to be a local script, or can you do such a thing server side too?
Much appreciated.
What would be the best method to determine if a part is fully in a player's view/camera? Such as a player looked at a door and it opened. Would it need to be a local script, or can you do such a thing server side too?
Much appreciated.
Er, you'd have to do some trigonometry to determine the sight range of a player, then if the part is in a certain angular area from the player. I have no idea how to put it into practise, though.
I know there used to be a guide somewhere on the topic, I think it was LuaLearners, but it shut down. Thanks anyways!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You could possibly use Raycasting, but I'm not sure about this.