12-12-2020, 07:37 AM
(This post was last modified: 12-12-2020, 07:46 AM by asimofu_ok.)
I made a method to modify particle positions and activate actor.
It is like this.
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?
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?