I want to detect if I see anything that is visible in the frustum in a 3D perspective, e.g. to detect if player that is able to rotate this frustum around (like FPS) is looking at an interactive object.
My first attempt is to create a simple collision object component with box type, but obviously it’s not perfect:
Adding more boxes could help me in one direction, but there are areas where I detect objects that are really not visible of course:
Is there a better way to define such collision object shape?
Or approach other than collision object? Of course, I want to have an information is something is in the frustum in a Lua script responsible for some kind of logic still.
Or maybe is there a Feature Request to add such collision shape (Frustum/Pyramid) as a primitive one?