3d stuff, more correct math for look-at