ray casting method 9246260