I want to trigger events based on the rotation of a mesh in 3d space. Currently I’m translating input from a gyro to the mesh (which works incredibly well - thx quaternions!).
My previous approach was to compare the vectors (gyro input) with fixed values. This works ok but depending on movement, there are multiple ways to rotate the 3d mesh to each position. So sometimes the events would not trigger.
New approach: Place quad on the mesh, whenever the normals face the camera -> trigger. Stuck here.
How can I checking if a quad is facing the camera (± tolerance)?