Following the previous post, here is a funny trick on user input. After playing with Oculus Rift i noticed a cute trick using bits for camera control. By switching bits on/off one can update a Camera’s direction vector with a byte. This allows us to accumulate directions with one variable and some states.
Jan 22, 2015