SkinnedCloth - moving/rotating bones with script - 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: SkinnedCloth - moving/rotating bones with script (/thread-2537.html) |
SkinnedCloth - moving/rotating bones with script - norbykov - 14-10-2020 Hey there, Apologies if this has been asked before - I searched the forum and couldn't find relevant information. We set up our character using the instructions and got the simulation working fine. But we're trying to move bones programmatically and can't seem to get it to work. The character's clothing is stuck in the initial pose. We're using Unity 2020 with HDRP. Thanks for any pointers that you could provide. RE: SkinnedCloth - moving/rotating bones with script - josemendez - 15-10-2020 (14-10-2020, 05:02 PM)norbykov Wrote: Hey there, Where in the update cycle are you updating your bones? They should be updated before simulation takes place each frame (which depends on what ObiUpdater component you're using) RE: SkinnedCloth - moving/rotating bones with script - norbykov - 15-10-2020 (15-10-2020, 07:56 AM)josemendez Wrote: Where in the update cycle are you updating your bones? They should be updated before simulation takes place each frame (which depends on what ObiUpdater component you're using) Thanks for the quick reply. They are updated in the Update function. We tried it with both OBI LateUpdater and LateFixedUpdater. RE: SkinnedCloth - moving/rotating bones with script - josemendez - 15-10-2020 (15-10-2020, 09:27 AM)norbykov Wrote: Thanks for the quick reply. They are updated in the Update function. We tried it with both OBI LateUpdater and LateFixedUpdater. Can you post the code you're using to update the bones? |