I have a long triangle shaped plane. I need to place the single vertex point of the triangle at a given position during runtime, while keeping the other two points in their starting location. (It’s a lightning bolt that always originates from the same place, but strikes different locations.) What would be the best way to achieve this?
I have tried moving the vertex and while Python tells me that the vertex has moved, I don’t see it move in the game. Anyone know if there is something simple I am missing to move a vertex?
own = cont.owner mesh = own.meshes vert = mesh.getVertex(0,1) vert.setXYZ([-50, -50, 0])
The -50 is arbitrary. It doesn’t matter what I put in there, the vertex NEVER moves.
I have also set up an armature. When I enter pose mode and move the bone, it moves EXACTLY how I want it to. Is there any way to move the bone to a worldPosition at runtime?