What I want to accomplish is to check whether an object is looking in between a minimum and maximum angle in 3D space
for example if a Helicopter is looking to the right...
it would have to check whether its rotation vector is within a cone like shape
when, the heli's rotation vector is inside, the method returns true, but false otherwise. So in the scenario above, the method would return false.
The answer is fairly simple in 2D as all I have to do is check whether minAngle < heli rot angle < maxAngle
or use dot product to check, but in 3D I have to look at 2 dimensions against the Y axis to start.
I could define a cone class and check whether a vector is projected from the origin, but it seemed too excessive as I dont need variables like cone length, start radius, & end radius. I feel like I'm missing something simple that involves a bit of playing around from xz to xz->y. Is it possible to accomplish something similar just by checking heli's rot orientation?