3D Graphics Tutorial - LWJGL, and GLSL.
dot product returns 1 when pointing in the same direction and 0 when perpendicular controls: wasd click left and drag click right and drag