A toolkit for 3D games and simulations