vertex pos

Blitz3D Forums/Blitz3D Beginners Area/vertex pos

mindstorms(Posted 2006) [#1]
This may seem silly, but do the vertexx,vertexy, and vertexz commands return coords in global or model space?


b32(Posted 2006) [#2]
They are the original mesh coordiates. Any EntityScaling, Rotation or Position does not affect VertexX/Y/Z.

To convert the coordinates to globals use:
TFormPoint VertexX(surface, index), VertexY(surface, index), VertexZ(surface, index), mesh, 0
And then read TFormedX(), TFormedY(), TFormedZ().


mindstorms(Posted 2006) [#3]
Thanks, b32. This helps alot