Is re-instancing a game object´s physics mesh possible after moving a vertex in the game engine using python? And how? And if it doesn't work why doesn't it work?


Ok, so I move a vertex in an in-game level editor to sculpt the landscape. My brush is moving to the hit position of the mouse. And when I move a vertex the brush stays where it is and does not move to the new vertex position because the physics mesh does not update. I have got a plane for example. I click with my brush on it. Now there´s a big bubble in the middle of the plane. Normally the brush should go to updated surface but it 'thinks' that there´s just the plane from before and nothing has changed. I tried obj.reinstancePhysicsMesh() already.


I took some screenshots:

Before moving the vertices. As you can see the physics mesh is still as it´s supposed to be. The red thing is the brush ^^

After moving the vertices. As you can see the visual mesh changed but not the physical mesh => The brush stays were it is.

  • $\begingroup$ You might want to clarify that and add some info . . . $\endgroup$ – VRM Jun 1 '15 at 20:54
  • $\begingroup$ I edited and clarified it. I hope everybody knows what I mean. $\endgroup$ – palkonimo Jun 3 '15 at 11:41
  • $\begingroup$ Hi, remember, images and .blend files are your friend. In other words, you should take some screenshots to help explain your issue. $\endgroup$ – TARDIS Maker Jun 8 '15 at 6:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.