How to detect object in 3d space?

Suppose we have a box in scene and some other objects around it, i must to write a
code to detect these objects , sketchup must have this feature but i could’t find it .
is there a code to detect object via vector or line or … ?

Model#raytest-instance_method

1 Like

Yes this is it :clap: tank you @dezmo