Hi all, in my project I am simulating a 3d printing process. I made the nozzle and the movements, but I don’t know how to make the deposited material. I tried to apply what is done in this link (https://docs.unity3d.com/ScriptReference/Object.Instantiate.html) but I honestly don’t understand.
I hope somebody can help me
possibly something like these could work,
or could try simpler version:
have a high resolution plane (or even terrain object), then move vertices upwards when material falls over them, possibly add smooth falloff distance, so nearby vertices around rise a bit also.
Honestly, I don’t know how to do the simpler version. In my project I don’t need to make the falling material visible, it’s sufficient to see the deposited material (so once it is solidified on the platform) that follows the nozzle (the script for the movement is ok)
see example #2 for modifying vertices,
so in your case:
- loop all vertices
- check distance to nozzle position
- move vertices upwards based on that distance, and perhaps some multiplier and curve Unity - Scripting API: AnimationCurve
My team and I tried at first to understand and then to apply what you said but we weren’t able to succed in it. We tried to apply the second example in the first link but it didn’t work. Can you please correct it such that it will work correctly following the movement of the nozzle?
100000001140554–910142–coordinates.cs (4.76 KB)