Switched to Ray for intersection