YouGroove Posted April 4, 2014 Share Posted April 4, 2014 Is it possible in LE3 with Lua to access Vertex of model and move them by code to a position ? For simple cloth custom system, custom modification of models in the editor etc .... Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rastar Posted April 4, 2014 Share Posted April 4, 2014 Model::GetSurface(index) Vec3 Surface::GetVertexPosition(index) Surface::SetVertexPosition(index, Vec3 newPos) should do the trick. Of course you'll need a way to identify the indices. Quote Link to comment Share on other sites More sharing options...
SlipperyBrick Posted April 5, 2014 Share Posted April 5, 2014 Is there a way to do this vertex snapping with custom models imported into Leadwerks? I know in Unity you can press CTRL + C I think and then drag your model which will snap to the nearest vertex. Can this be done in Leadwerks? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 5, 2014 Author Share Posted April 5, 2014 You should post that in suggestion, i think it would be incredibly usefull specially for modular level making 1 Quote Stop toying and make games 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.