Single Line Trace somtimes goes through landscape

Okay would you test a trace on click? I think the every tick stuff is the problem( iam doong this in a project myself, dont have that issue) like in the rts example