Global vertex position
Blitz3D Forums/Blitz3D Beginners Area/Global vertex position
| ||
Hey guys, Is there a way to grab the world position of a vertex? When I use VertexY(surface,index) it gives me the local location of the vertex relitive to the others, so no matter where in the world the vertex is, it returns the same results. Im trying to use a Linepick command to shoot a ray below each vertex and 'layer' the model on top of a terrain mesh below it. |
| ||
TformPoint VertexX(surf,i),VertexX(surf,i),VertexX(surf,i), mesh,0 and then access TformedX() etc. http://www.blitzbasic.com/b3ddocs/command.php?name=TFormPoint&ref=3d_cat |
| ||
Awesome!! Thanks so much! |