mesh = obj.meshes[0]
for index in range(mesh.numPolygons): # iterate over faces
polygon = mesh.getPolygon(index)
polyMesh = polygon.getMesh()
mat_index = polygon.getMaterialIndex()
for poly_vert_index in range(polygon.getNumVertex()):
mesh_vert_index = polygon.getVertexIndex(poly_vert_index)
vertex = mesh.getVertex(mat_index, mesh_vert_index)
print("Index ",index," polyIndex ",poly_vert_index," vertex ",mesh_vert_index," coord ",vertex.x)
As i move the object (by applying force) the coordinates of each vertex remain the same, how do i get the updated coordinates as the object moves and rotates. Also how do i get the updated face normals of the moving object?