To avoid creating extra animations, I am using dot product to decide in which verse the door should open. Alas, despite my attempts, the dot product never gives a -1, as if the forward vector of the door is never pointing in the opposite direction. The result is always between 1 or 0.
I noticed that as soon as I shared the snippets, my bad.
But now I am having the opposite problem: it’s never greater than 0
Everytime it prints the string, is always give me a valure under 0.
Note that the door may be made out of many components. Actor, as a whole, can point one way, and the swinging component (door wing?) can point some other way. It also depends how things are rotated. Hard to tell without seeing the hierarchy.
Perhaps it’s a matter of sampling the component’s forward / right?