How slow is this function

Blitz3D Forums/Blitz3D Programming/How slow is this function

xmlspy(Posted 2006) [#1]
Changed it a little bit. Ok, LinePick doesn't seem to be working at all. What am I doing wrong? My homemade check function LinePick2 does return what I want, but it's slow as heck. Linepikc doesn't seem to be returning anything.
Keys:
1 - home made check
2 - linepick
3 - linepick with start and destination coords




Bobysait(Posted 2006) [#2]
=> to enable picking, you must set yours entitys's pickmode true with the 'EntityPickMode' command ! else, you'll never pick anything ...


xmlspy(Posted 2006) [#3]
haha, in this example I forgot to throw that in. I'll fix it.


xmlspy(Posted 2006) [#4]
I got all of them working, and one of the linepick functions was wrong too.


Bobysait(Posted 2006) [#5]
you talk about this one ?
Line_Pick(sx#,sy#,sz#,dx#,dy#,dz#, radius#=1)

if so, maybe the correction i gave was right ? ;)
( I like to be congratulated xD )


xmlspy(Posted 2006) [#6]
no, the code inside that function was wrong.

It's not:
Return (LinePick(sx,sy,sz,sx-dx,sy-dy,sz-dz, radius#))
It's:
Return (LinePick(sx,sy,sz,dx-sx,dy-sy,dz-sz, radius#))


Bobysait(Posted 2006) [#7]
Yes, of course, that's what i say ;)
=> referring to your other topic !