LinePick help

Blitz3D Forums/Blitz3D Programming/LinePick help

Spacemonkey(Posted 2004) [#1]
Hi All,

I have encountered a strange thing – maybe there is a logical reason for this – anyway. If I load a *.3ds file, and I do a linepick from that, the result on the PickedY is always 0.0 – but if I convert it to *.x, PickedY returns the accurate distance to my destination mesh. Why is that?


jfk EO-11110(Posted 2004) [#2]
PickedY doesn't return a Distance. It returns a Coordinate. Probably the top level entity of a 3ds is diffrent from the top level entity in the .X File. You should try the following:

a=loadmesh("test.3ds")
print entityx(a)
print entityy(a)
print entityz(a)

b=loadmesh("test.x")
print entityx(b)
print entityy(b)
print entityz(b)

Everything should be Zero. If it's not, then you know the reason for this strange behaviour. You could then check the Hierarchy of the meshes and compare the 2 formats.