Open kv-ep opened 4 years ago
Did you manage to solve this? Or acquire the springs in some other way?
I don't think I ever got it working. Pretty sure it's a bug and I doubt there will be any updates to FleX at this point.
You can get access to the same technology if you use PhysX 5 though (no existing Unity integration for it so you would have to do that yourself).
I am trying to use the Get and SetSprings functionality exposed in the Unity plugin, and I am running into some odd behavior where the editor will periodically crash. Also, the values obtained are not as expected.
Attach this script to a FlexClothActor and it should print out a spring stiffness value and then set all the springs to the values it just got (should have no affect). Instead it prints 0 every iteration and the cloth behaves as if it has no tension and/or blows up if it touches anything. Also, every other time the editor is run, it will crash. These functions are not used throughout the rest of the plugin, so I am somewhat guessing as to how they should work. Is this the proper way to access/modify spring values?