added onFlip and helper functions

we can easily check if an object is facing the camera or seen from
behind as well as track its angle with respect to the camera regardless
of its position and Euler rotation
updated asteroids game to use onFlip
added examples for new functions