![]() |
Help Is it possible to make the cloth taut in real time? - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: Help Is it possible to make the cloth taut in real time? (/thread-667.html) |
Is it possible to make the cloth taut in real time? - jb88886 - 28-08-2018 Is it possible to make the cloth taut in real time? For a camping simulation to set up a tent, I'd like to "pin" the cloth down in the corners and make it taut. RE: Is it possible to make the cloth taut in real time? - josemendez - 29-08-2018 (28-08-2018, 10:52 PM)jb88886 Wrote: Is it possible to make the cloth taut in real time? For a camping simulation to set up a tent, I'd like to "pin" the cloth down in the corners and make it taut. You can scale down the distance constraints by setting the stretching scale to something < 1: http://obi.virtualmethodstudio.com/tutorials/distanceconstraints.html This will make it "shrink", which will tense it up if its edges have been pinned down. RE: Is it possible to make the cloth taut in real time? - jb88886 - 29-08-2018 (29-08-2018, 08:43 AM)josemendez Wrote: You can scale down the distance constraints by setting the stretching scale to something < 1: Great, thank you! Another question, do you know how I can get the particle index from collision to change it to fixed from unfixed upon collision in the script? I read that you can set the particle position, but I didn't see if there was a method to get the index. RE: Is it possible to make the cloth taut in real time? - josemendez - 29-08-2018 (29-08-2018, 04:04 PM)jb88886 Wrote: Great, thank you! just use Code: int index = contact.particle; http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html |