In the manual it says, that one possiblity of hitflag is "NX_RAYCAST_SHAPE". I think, this is wrong, it has to be "NX_RAYCAST_ENTITY"

[Version 8.10.1]