cyanrealm I have test it with the static body. The ray go through it. I've also check the collision mask correctly.
cyanrealm Sorry for the late reply. I can't log in because of some kind of security trouble of the site. Yes I did put a collision shape as a child of the object. I try to detect collision between the ray shape and the object and it detect just fine.