Obi Official Forum

Full Version: How to update particles immediately after activating ObiRope Component
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Sorry, I found my mistake.
ObiSolver and ObiRope had been attached same Object.
It no longer occurs when ObiSolver is a parent of ObiRope.