off of your first purchase on a domain name or website the world is your oyster baby so go do something with it thank you squarespace for sponsoring this video and back to the content so a couple of things i might be doing the inverse wrong in fact i am doing the inverse wrong so i realize negating is kind of not the same as inversing i think i don't know i really don't think that's the universe um another thing test if this actually works it probably doesn't there's just a few points in here which i'm not entirely sure about that we can try and touch up to do it no working make it worky thank you so the first thing i want to try out is uh getting this inverse to work properly obtained by simply changing the sign of its imaginary components all right so that's how you move squirtonio yo what's poppin gamers how we doing pretty good have you ever heard of the the right hand rule before okay so quaternions follow the right hand rule so the last xyz you can think of it as a vector that points towards a a direction right is that like your fingies that curl that would be like your thumb the thumb is the direction okay and then the w is how far it's rotated around that and zero would be no rotation so when you inverse x y z you flip your thumb and you rotate the other way because the vector's opposite the opposite direction that's why it's the inverse gosh because if you were to flip all of them in the w you would flip the rotation around so you flip your thumb around and then you'd flip the way that it's curling so you would do the same motion so if you just flip the xyz that's the inverse yes float math is in for imperfect as you do math like that the quaternion becomes unnormalized just in the with the error of doing float math and when you have a when you have an unnormalized quad turning in you get weird skewing in your transforms yeah i'm just multiplying x y z w together with x y c w but shouldn't i just do a quaternion multiply instead to actually multiply that yeah you should do you should do a quad turning and multiply okay that's that's where i went wrong i don't know why i thought just multiplying them together would be right yeah look absolutely perfect zero zero zero one yeah all right inverse properly and now that i know my my quad multiply actually works so i can kind of get rid of that things still aren't working though so uh i'm gonna need to dig a little further into what the PROFANITY_TOKEN is actually going on thanks for the clarification though uh that's very helpful it's good that the inverse works and the quality works thank you very much good sir see you in NUMBER_TOKEN seconds flat when i run into another problem i'll be here so now i've got to figure out what's actually going wrong which is going to be fun i guess all there's really left to do is to just debug a bunch of these values and you know see what's right and what's wrong there is our first issue if we look at this that's
START_SPONSOR_TOKEN off of your first purchase on a domain name or website the world is your oyster baby so go do something with it thank you squarespace for sponsoring this video and back to the content END_SPONSOR_TOKEN