Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SkinnedCloth - moving/rotating bones with script
#1
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.
Reply
#2
(14-10-2020, 05:02 PM)norbykov Wrote: 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.

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)
Reply
#3
(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.
Reply
#4
(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?
Reply