Hello! I am using camera in this context and I am trying to make a boolean check if camera is facing at character’s face, as well as if the character is facing to the camera. So I need to know what kind of math or other functionality to make something like this work. Thanks!
You will need Vector math.
Basically you have two vectors:
- Direction of the camera
- Direction where the charactes looks
There is a section about this “facing” topic in the Godot docs: Vector math — Godot Engine (stable) documentation in English
Edit: So for 3D you will need to use the same idea: Use the dot-product of 3D-vectors to get the infos about visibility.