Vertex world position

Blitz3D Forums/Blitz3D Beginners Area/Vertex world position

Mr Snidesmin(Posted 2006) [#1]
Whats the easiest way to get a vertex x,y,z world coordinates in a mesh given the mesh's entity position and rotation etc?


b32(Posted 2006) [#2]
use TFormPoint VertexX(surf, i), VertexY(surf, i), VertexZ(surf, i), mesh, 0
where "0" is a handle to the global world. Then, read TFormedX(), TFormedY() and TFormedZ().


Mr Snidesmin(Posted 2006) [#3]
cool thanks!