Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Softbody Elastic Character - Make Hand Move to Target
#1
Basically the title. I am trying to have the softbody elastic character's hands move to targets. I tried making particle groups for the hands and using Obi Particle Attachments, but that didn't seem to work. What I am hoping to do is have the softbody physics apply to the arms and be able to move the hands around freely. Is this possible with Obi Softbody?

Any help with this would be greatly appreciated!
Reply
#2
(07-07-2021, 05:53 PM)benbabwe Wrote: Basically the title. I am trying to have the softbody elastic character's hands move to targets. I tried making particle groups for the hands and using Obi Particle Attachments, but that didn't seem to work. What I am hoping to do is have the softbody physics apply to the arms and be able to move the hands around freely. Is this possible with Obi Softbody?

Any help with this would be greatly appreciated!

Hi there!

There's many ways to do this, I can think of at least three:

- Using particle groups + attachments.
- Setting the particle's inverse mass to zero and override their position (see: http://obi.virtualmethodstudio.com/manua...icles.html). This is basically what static attachments do internally, but you can also manage it manually.
- Using external forces (writing into the solver's externalForces array) to make particles spring towards a target position.

Attachments should work just fine, they are the simplest approach. Can you describe why they didn't work, and was you've tried with them so far?
Reply
#3
(08-07-2021, 08:15 AM)josemendez Wrote: Hi there!

There's many ways to do this, I can think of at least three:

- Using particle groups + attachments.
- Setting the particle's inverse mass to zero and override their position (see: http://obi.virtualmethodstudio.com/manua...icles.html). This is basically what static attachments do internally, but you can also manage it manually.
- Using external forces (writing into the solver's externalForces array) to make particles spring towards a target position.

Attachments should work just fine, they are the simplest approach. Can you describe why they didn't work, and was you've tried with them so far?

Thanks for the info! Regarding the particle attachments, I am unsure of what I am doing wrong. Here is what the softbody object looks like: 
https://imgur.com/a/0ikSvbF

Here is what my GameObject hierarchy looks like for my character controller:
https://imgur.com/a/Pp3OcCO

And the particle attachment object is just telling the the LeftHand particle group to follow the HandLeft transform from the hierarchy. Anything here seem to be setup wrong?

I have physics-based motion on the HandLeft object that I want the particles to follow. I tried a particle attachment to some other objects, but nothing seems to happen. I am using the other particle attachment (the static chest one) as a reference for how I was setting up this dynamic one.
Reply
#4
Dynamic attachments use pin constraints as explained in the manual (http://obi.virtualmethodstudio.com/manua...ments.html), so you need pin constraints to be globally enabled in the solver for them to work. Maybe this is the issue?
Reply
#5
(08-07-2021, 05:07 PM)josemendez Wrote: Dynamic attachments use pin constraints as explained in the manual (http://obi.virtualmethodstudio.com/manua...ments.html), so you need pin constraints to be globally enabled in the solver for them to work. Maybe this is the issue?

Ahh yes, that seems to have solved the issue now. Thank you!
Reply