Hey guys, how can i check if my 2 Quaternions looking in the same direction?
Hey guys, how can i check if my 2 Quaternions looking in the same direction?
7 Replies
thx!
oh
but i mean to check if a Quaternion look in the same direction as another one
that is creating a new one
For details, check https://gamedev.stackexchange.com/questions/15070/orienting-a-model-to-face-a-target
Game Development Stack Exchange
Orienting a model to face a target
I have two objects (target and player), both have Position (Vector3) and Rotation (Quaternion). I want the target to rotate and be facing right at the player. The target, when it shoots something
You could convert both to euler angles then do an equality check on those 2 vectors?
Euler angles could be everything
It could -390 but it could 30
i made it work
bit messy right now but this works! thx guys!
I think you can mod the components with 360 though?
double x = vec1.X % 360
Not too sure though, haven't done 3d stuff in a whilefixed it already, but anyways thx