linepick bug

BlitzMax Forums/MiniB3D Module/linepick bug

Chris C(Posted 2007) [#1]
[edit] funny how describing a bug helps fix it!

in Tpick.bmx for pick mode 2 there are two statement like the one below

TFormPoint b.x,b.y,b.z,Null,ent

they should be

TFormPoint a.x+b.x,a.y+b.y,a.z+b.z,Null,ent

I can now "drive" my camera round the landscape!!

the second set of co-ords is a distance vector not an absolute position!

hope this helps


simonh(Posted 2007) [#2]
Yes, well spotted.

However, your change will stop CameraPick, EntityPick and EntityVisible from working which all use LinePick internally and use absolute positions.

So for now I recommend treating LinePick as if it takes two absolute positions, and I'll supply a fix in the next update.


Chris C(Posted 2007) [#3]
thats odd I did test the camerapick (again) with the module import I messed with and it seemed to work, but you're right it shouldn't!!! something odd going on.... (even deleted the .bmx folder...)

anyhow I'm not using camera pick ATM, the important thing is that you're aware of the problem!