Global Vertex Position
Blitz3D Forums/Blitz3D Programming/Global Vertex Position
| ||
Hi everybody, long time no see. I need to find a vertexs global position and noticed the command VertexX( Surface%, Index% ) didn't have a global parameter. I've looked at other commands in the manual but none seem to do what I want. I've tried messing around with Cos( ) and Sin( ) a bit but I get strange results. I hope there would be a better way to go about it than using Sin/Cos, but it doesn't matter that much as long as I get proper results. |
| ||
Use the Tformpoint command to transform from the surface's vertex's local coordinates into global coordinates....something like this should help: tformpoint vertexx(surf,index),vertexy(surf,index),vertexz(surf,index),entity,0 |
| ||
Holy cow, that works perfectly, you just made my day, thanks ;) |