getMesh
getMesh()
Returns a mesh proxy
Return Type: KX_MeshProxy
Sample
Code
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first polygon on the mesh
poly = mesh.getPolygon(0)
# get the mesh
polyMesh = poly.getMesh()
|