adding client ray-casting