Jump to content

Recommended Posts

Posted

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 ....

Stop toying and make games

Posted

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.

Posted

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?

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...