27-03-2024, 04:32 AM
Im using OBI Rope in Unity with XR Interaction Toolkit where user needs to grab the rope in VR and move it with hands (controllers).
When Unity grabs any object it changes its position in hierarchy and move it to root, as soon as it happens OBI Rope stops working because there is no solver above in its hierarchy anymore. It only works if I put the OBI Solver directly on OBI Rope game object so when Unity moves it to root they are both moved together.
I have multiple ropes in a scene, I don't want to use multiple solvers (one solver for each rope) to maintain performance. What could be a solution that I can use one solver for multiple OBI Ropes without any order in hierarchy.
When Unity grabs any object it changes its position in hierarchy and move it to root, as soon as it happens OBI Rope stops working because there is no solver above in its hierarchy anymore. It only works if I put the OBI Solver directly on OBI Rope game object so when Unity moves it to root they are both moved together.
I have multiple ropes in a scene, I don't want to use multiple solvers (one solver for each rope) to maintain performance. What could be a solution that I can use one solver for multiple OBI Ropes without any order in hierarchy.