Hey there, I’m trying to develop a way to locate and identify camera position and orientation, or perhaps a way to identify is something is within view of the camera or if it falls within a certain object to detect its presence.
Anything found will help a lot or if you can manage to point me to resources will help too.
Are you asking multiple different questions here or trying to reword the same one?
What are you working on that requires this functionality?
You can get the camera’s position from Camera.CFrame.Position
, though getting its orientation is a bit more complicated. However, to get parts on the screen, all you’d have to do is use WorldToScreenPoint on the position of the part in question. However, you’ll probably want to use it on all 4 corners (relative to its orientation) in order to get exactly if a part is on screen or not, even if the part’s center is not in frame.
1 Like