I was setting up some stuff and faced with this issue. I hope that someone can help!
Can’t really tell what your code is suppose to do from the setup but a quick tip
rayCast(end,start…)
drawLine(start,end…)
yeah…typical bge standards there lol
Is this BGE or UPBGE?
Oh, yeah. I must first input end. Thanks, this solves it!