I’m having a difficult time finding these functions on the wiki, because I don’t exactly know what they would be called. However, I can describe them. The three functions would take two arguments; a player, and a vector representing a position in the world.
The first function would return a boolean based on whether or not the position is within the player’s line of sight, ie. unobstructed by walls or entities. It would still return true if the point was behind the player, but unobstructed.
The second one would return a boolean whether or not the position is within the player’s view cone, and in turn, possibly visible on their screen. This is separate from the above function, as it would still return true if the point was obstructed.
The third would return the exact xy pixel position on the player’s screen that the point is rendered at. This could return negative values or values greater than the screen resolution if the position is off of the player’s screen.
For one, do any of these functions already exist? And if not, how would I implement any of them?