14-08-2023, 06:18 AM
(11-08-2023, 04:33 PM)Renman3000 Wrote: Hi there,
So a peculiar issue that I can not solve.
Code:Vector3 posEnd = obiRope.solver.positions[i_lastParticle];
So some background, this is running on an instance of my own Class, TentacleUnit, of which I have a half dozen in an array. Despite double-checking and rechecking that each instance of TentacleUnit is referencing its own obiRope, the position being reported is one position, across all units.
Is there any reason, you can think of where calling one instance of an obiRope.Solver would imply this across all?
Thanks
Hi!
Particle data is stored in the solver, for all actors in it. So if you're accessing the same particle index for all ropes, the position reported will be the same for all of them.
How are you calculating i_lastParticle for each rope?
kind regards,