Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to update particles immediately after activating ObiRope Component
#1
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?
Reply
#2
Sorry, I found my mistake.
ObiSolver and ObiRope had been attached same Object.
It no longer occurs when ObiSolver is a parent of ObiRope.
Reply