Vertex world position

Blitz3D Forums/Blitz3D Beginners Area/Vertex world position

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?

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().

cool thanks!