Download

How to determine if the player is rotating clockwise or counterclockwise?

Say you have the player with his arms extended in a T pose and then you want to detect if he’s rotating (keeping that pose) clockwise or counterclockwise. The player has to be able to look wherever he wants so can’t use the camera rotation and he can also be facing any direction.

I’m detecting the proper pose properly, I’m then measuring the delta between hands positions from frame to frame which gets me a direction and a velocity but I can’t for the life of me figure out how to tell if it’s going clockwise or not.

Any ideas?

Nevermind, figured it out.