Now when it comes to moving these missiles independently, you can't use the entity commands any more, because the entity is all ten missiles now. So you have to use the vertex manipulation commands to move the parts which belong to each missile independently. You need a basic grasp of position, rotation and scaling around arbitrary points in 3d space, but it's not too complex. ( If my pathetic grasp of 3d maths can cope with it, it can't be too bad. )
I gotcha - so you kind of alter the mesh geometry rather than actually move it to give the impression the missiles move. I see. I think Ill leave that well alone for now!
You add polygons to a surface with AddVertex() and AddTriangle()
Yes, it's possible to go through an existing mesh and add it manually to a new surface, then add another and another. For that you'd need to go through all the surfaces of the existing mesh with CountSurfaces() and GetSurface() then go through the triangles with CountTriangles() and use TriangleVertex() to grab the vertices which make up the triangles. You can then get the vertexpositions with VertexX() VertexY() and VertexZ()
It's not as complicated as it sounds, and if you check out SSwift's AddMeshToSurface() function in the code archives, it's a good example to show how to do this.
www.blitzbasic.com/codearcs/codearcs.php?code=575
Thanks a million, Sybixsus. (wow! I spelt your nick right for once!)
What I intend to do, is learn how to build a mesh then texture it with multiple textures eventually. If I can learn this in the code it will really give me a better understanding. Thanks loads!