|
matidmatidReturns the material index of the polygon.Return Type: integer Sample Code# get controllercontroller = GameLogic.getCurrentController()# get object the controller is attached toobj = controller.owner# get the 1st meshmesh = obj.meshes[0]# get the first polygon on the meshpoly = mesh.getPolygon(0)# get the polygon material indexpolyMatIndex = poly.matid |