lookingAt
LookingAt is a term used in software development and game design to describe a relation between a viewer or agent and a target, indicating whether the target lies within the viewer’s forward direction or line of sight. In practice, it often refers to a check or function named lookingAt, isLookingAt, or similar that returns a boolean or, less commonly, a vector result, depending on the API.
Typical approach in 3D environments uses orientation vectors. Given a source position and a forward direction,
Common contexts include: video games for NPC gaze or target detection; camera or avatar systems to determine
Variations exist across libraries and engines; the exact name and return type vary, and some systems use