Fix the cast of a ray starting inside of an implicit shape.