Initial version of ray casting with plane working.