I have a specific question, but I’m also sick of Quaternions being a pain in my ass every time I want to do anything in Unity, so I’ll ask up front – anyone know of any good lectures for dumb idiots like me that will explain Quaternions simply, yet extensively enough that from now on I’ll “get it”, rather than having to constantly Google for code snippers and half-answers that I don’t understand? I’d really like to get over this frustrating learning curve.
As for my specific question (which is for a 2D project), I have a script that (thanks to a lot of Googling and luck) will rotate the player to face in the direction of an AreaEffector and also rotate a player’s feet toward the axis of an object with a Point Effector. I specifically want to expand this second part so that, if the force is positive (so the player is pushed away from the Point Effector rather than drawn into it), the player’s feet will instead rotate outward to face away from the Point Effector game object’s central axis. Basically, I want to take this method and get it to return a final Quaternion that is rotated an extra 180 degrees around the Z axis (compared to what the result is now, effectively rotating the player so the feet will be where the head is and vice versa).
How do I do it? Please help, I hate Quaternions!