How can i get the angle of the cube's face i'm looking at?
Hello, i have a cube and i would like to know the angle between my forward vector and the cube's face forward vector that i'm currently looking at. I have the following working logic:
This gives-me -90º when i'm looking directly to the face and it works, but i'm sure there has to be a better way to do this ! Thank you.
asked Oct 17 '14 at 01:17 AM in C++ Programming
I really overcomplicated this, after spending some time i ended up with:
The first step wasn't necessary at all :P
answered Oct 17 '14 at 03:18 PM
A trace will return the normal angle, but I am not sure what context you are needing this info in so I don't know how useful that will. be.
answered Oct 17 '14 at 01:36 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here