Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to add particles to existing cloth object
#4
(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
Reply


Messages In This Thread
RE: How to add particles to existing cloth object - by josemendez - 09-10-2018, 02:28 PM