Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ObiSofbody problems in runtime with separate solver and initialized state
#1
Hello

I am working with ObiCloth before but I wanted to switch to ObiSofbody. But it is not possible due to several critical programs and missing functionality.

1. I am not able to get it work in runtime when I have Solver separately. It seems like ObiSofbody required to have solver attached to it when it is instantiated. Because when I assign it later simulation is not working as it should. Looks like Skinner stop working.
In my application, I use lots of soft-bodies with just one solver as a prefab and I assign it in runtime for object I want to simulate. 
I've reproduces it on test scene (with blue Balls)

2. I also not able to get it work when ObiSofbody is not in initialized state in prefab. And I have problems with creating prefabs with Initializing state. This is not working in prefabs preview mode (Unity 2018.3 or later). So I do initialization in runtime by using GeneratePhysicRepresentationForMesh() and it is not working for ObiSoftbody but working great with ObiCloth.

3. It looks like ObiSofbody and ObiSofbodySkinner are know about each other in Awake method. I expect a problems with it because Unity is not guarantie Awake method calling order.

So what I need:
- Allow me to setup ObiSofbody with external Solver, Initlize it, change it fields ect. And then when I am done I can call AddToSolver to get it simulated. This is currently not working.

Thanks
Reply


Messages In This Thread
ObiSofbody problems in runtime with separate solver and initialized state - by mmortall - 07-05-2019, 06:37 PM