|
getXYZgetXYZ()Returns the X, Y and Z position of the vertex in local coordinates (distance form object center).Return Type: float 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 vertex of the first meshvert = mesh.getVertex( 0, 0)# get the positionpos = vert.getXYZ() |