I cant see what I'm doing wrong here, I'm using Irrlicht and PhysX.
It points to either of the two above where I've marked 'HERE, if I swap them around it'll point to the top one. The file path is correct.
Global cloth_mesh:IAnimatedMesh=Null cloth_mesh = smgr.getMesh("pol.b3d") cloth_node = smgr.addAnimatedMeshSceneNode(cloth_mesh) Global cloth_body = CreateClothSpecial(cloth_mesh) pxClothAttachVertexToPos (cloth_body, 399, -10,30,10) pxClothAttachVertexToPos (cloth_body, 440, 9,30,10) Function CreateClothSpecial(cloth_mesh:IAnimatedMesh) Local entity:IMesh = cloth_mesh.getmesh(0) Local surf:IMeshBuffer = entity.getMeshBuffer(1) Local nvert% = surf.getVertexCount() 'HERE Local nface% = surf.getIndexCount()/3 'HERE
It points to either of the two above where I've marked 'HERE, if I swap them around it'll point to the top one. The file path is correct.