- Home /
3D model script for mesh and vertice deformatoin on mobile using touch and drag deformations by the user
For my 3D model I am trying to find a deformation script that will allow me to touch and drag vertices with an assignable user-controllable fall-off radius to stretch or distort the 3D Model at runtime for the user. I've looked into lean touch, easytouch and gestures but can't quite find what I am looking for.
Answer by JonPQ · Aug 28, 2017 at 07:16 PM
This old procedural geometry UNity demo has touch to drag on sphere, might be close to what you need. https://www.assetstore.unity3d.com/en/#!/content/5141
This looks great, how can this be set up for a mobile user to use on a 3d $$anonymous$$odel?
I'm looking into the plug-in now and may be able to find the solution. Thanks Jon!
from what I remember, there is a scene with a sphere mesh, and the code traces a line from the mouse click point, you'll need to change that to screen touch point (which is already in the same co-ordinate system so shouldn't be too hard) and it should work on a model as long as it has the meshcollider component (at a guess) and the mesh density is fairly dense ... it has been a long time since I looked at that package. Good luck
Your answer
Follow this Question
Related Questions
Get plain coordinates for another object 2 Answers
cloning prosedural mesh,deform mesh and instantiate 0 Answers
Moving an hole in a plane 0 Answers