I got weird probs

Blitz3D Forums/Blitz3D Programming/I got weird probs

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.

Picks are sensors basically. Define a origin, define a vector(From that origin) and define the radius of this virtual line in 3d space.(spherical)

Now, to check the ground beneath a tree..

hit=linepick(treeX,treeY,treeZ,0,-20,0)
;this will cast this virtual line and return the entiy hit if any.(Only checks entities that have a pickmode. poly is best)

then use pickedX,y,z etc to get exactly where the line and the geo(I.e the ground) meet. I.e exactly where you want to place the tree.