added raycasting to cam