09-10-2018, 02:28 PM
(09-10-2018, 02:25 PM)arrnav96 Wrote: Got it!
Also, is there a way to reliably drag the cloth using mouse input? The current unmodified ObiClothDragger script does quite "drag" around the selected vertex with the mouse.
Specifically, I want the selected vertex on GetMouseButtonDown(0) to move under the exact mouse pointer's position on GetMouseButton(0).
Thanks
Yep. Instead of using a spring force to move the particle around (which is what the dragger currently does), modify it to set the particle position directly using Oni.SetParticlePositions(). See:
http://obi.virtualmethodstudio.com/tutor...icles.html