v2
v2
Returns the Mesh Vertex index number of the 2nd Polygon Vertex.
Return Type: integer
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 vertex index of the 2nd poly vertex
vertIndex = poly.v2
|