fixing pointer in 3D space