Hartha Posted January 31, 2017 Share Posted January 31, 2017 I create mesh by new BABYLON.Mesh(name, scene) and i need to update it's positions. in the documentation the constructor has no updatable flag, i tried to update the positions by mesh.updateVerticesData but the changes has no effect. how i could set is updatable ? Quote Link to comment Share on other sites More sharing options...
JohnK Posted January 31, 2017 Share Posted January 31, 2017 Hi and welcome to the forum. When you do vertexData.applyToMesh(customMesh); You need to add a true parameter vertexData.applyToMesh(customMesh, true); If you have been following these tutorial http://babylonjsguide.github.io/advanced/Custom http://babylonjsguide.github.io/advanced/Updating_Vertices.html this information was missing - good spot - will correct. Nabroski and jerome 2 Quote Link to comment Share on other sites More sharing options...
Hartha Posted January 31, 2017 Author Share Posted January 31, 2017 Thank you very much . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.