Hello monkeys,
I am facing a problem trying to update the position Buffer (vertices) of a Mesh from a native c++ code (for softBody physics).
So the first attempt for updating the render was to create a new Mesh each frame with a given position (vertex) array. This work, but can we do better ? Maybe try to update only the buffer directly from the c++ side (JNI binding).
In the second choice the buffer is updated but theres are no changes in the render
what I already tried :
- setting the geometry to setDynamic(); or setStreamed();
- using geom.getMesh().updateBound(); and geom.updateModelBound();