15-11-2021, 08:40 AM
(This post was last modified: 15-11-2021, 08:41 AM by josemendez.)
(15-11-2021, 07:36 AM)srid96 Wrote: Hi,
I need to find the last point of rope in script, not the particles(because when moving the rope, particles seems to be bit late to reach the rope rendered position.
I know this is basic ques, I have searched everywhere, I couldnt get what i need.
Hi!
This is explained in the "scripting particles" section manual:
http://obi.virtualmethodstudio.com/manua...icles.html
Quote:The solver will also generate renderable particle positions and orientations at the end of every frame. You can access them like this:
Vector3 pos = solver.renderablePositions[actor.solverIndices[0]];
If the solver's interpolation mode is set to "interpolate", solver.renderablePositions will contain temporally smoothed-out positions that won´t coincide with the actual particle positions at the end of the simulation step. That's why they are called "renderable": they are only used for smooth rendering, but they aren't fed back into the simulation.
let me know if you need further help. cheers!