Help with LinePick?

Blitz3D Forums/Blitz3D Programming/Help with LinePick?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

here it works

result=linepick(x,y,z,x2-x,y2-y,z2-2,0.1)

where x,y,z is the start position and x2,y2,z2 is the end position of the pick. Or use w,h,d instead of x-x2 etc.

Isn't there an example in the docs?

You can also check if things are working correctly, when you use Camerapick with mouseX/Y.

Example:

cube=createcube()
entitypickmode cube,2

p=linepick(0,0,-10,0,0,20,.1)
print p
waitkey()