added raycasting in editor view