Hi all!
I've got 2 problems with raycast.Need some help to solve it.
1.Ray pass through solid body, just like there is no body at all.

2.Ray penetrate body through "the hole" between two shapes:

p.s. as-code attached
I've got 2 problems with raycast.Need some help to solve it.
1.Ray pass through solid body, just like there is no body at all.

2.Ray penetrate body through "the hole" between two shapes:

p.s. as-code attached