Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
End of the rope! Match position
#7
(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,
Reply


Messages In This Thread
End of the rope! Match position - by Renman3000 - 07-08-2023, 03:12 PM
RE: End of the rope! Match position - by josemendez - 14-08-2023, 06:18 AM