Obi Official Forum
Help How to update particles immediately after activating ObiRope Component - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help How to update particles immediately after activating ObiRope Component (/thread-2629.html)



How to update particles immediately after activating ObiRope Component - asimofu_ok - 12-12-2020

I made a method to modify particle positions and activate actor.
It is like this.
Code:
obiRope.enabled = true;
for(int i=0; i< obiRope.solver.positions.Count; i++)
    obiRope.solver.positions[obiRope.solverIndices[i]] = targetPositions[i];

However, it displays particles that are before deactivating only at one frame immediately after executing this.

I tried some update or rebuild methods for ObiRope and ObiSolver.
But I didn't find method to force update particles.
Is there a way to solve this?


RE: How to update particles immediately after activating ObiRope Component - asimofu_ok - 12-12-2020

Sorry, I found my mistake.
ObiSolver and ObiRope had been attached same Object.
It no longer occurs when ObiSolver is a parent of ObiRope.