I'm using the BGE and I need to change the position of a group of vertex of a soft-body while the game is running. I've tried with the code below but I don't see any change. If I print the new position of the vertex I can see in console that the value change but in the soft-body I don't see anything different. I've tried using obj.reinstancePhysicsMesh(obj,mesh) at the end of the code but that change the position of the entire mesh. How could I do?
import bge import bpy cont = bge.logic.getCurrentController( ) own = cont.owner scn = bge.logic.getCurrentScene( ) obj = scn.objects["object1"] mesh = obj.meshes for v in range(0,1000): vert = mesh.getVertex(0, v) vert.XYZ = [1.0, 1.0, 1.0]