|
setXYZsetXYZ(pos)Sets the position of the vertex using local coordinates (distance from the object center).pos: Type: list [ x, y, z]
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 materialvert = mesh.getVertex( 0, 0)# set the positionvert.setXYZ([ 1.5, 1.0, -0.5]) |