Detecting camera direction

hi how can i detect if the camera is facing on the side of a character like this:

1 Like

There are a lot of ways of knowing where’s the camera facing. You can use Raycast for considerably big objects, normal vectors, or to get a more accurate result, calculate the angle between 2 vectors by using Dot Product.

local Angle = math.deg(math.acos(v1:Dot(v2)))