Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Teleport attachment to the transform target
#5
(02-03-2022, 02:14 PM)josemendez Wrote: Now if the attachment component already exists and the simulation is running when you do this, you need to re-bind the attachment so that it picks up the new position. This is done automatically when you change either the particle group or the target, but you might want to call it manually in this case to force it. Since it's a private method, open ObiParticleAttachment.cs and make its Bind() method public.

Then you can call attachment.Bind(); and you're done. This is what tells the attachment "see where the particle is in relation to the object right now? I want it to stay right there".

Thank you a lot it seems to work, with the code you give (it's just "particleGroup" and not "ParticleGroup", at least for my version of ObiRope). But, I don't understand what does the function Bind() add to your code ?
Reply


Messages In This Thread
RE: Teleport attachment to the transform target - by lufydad - 02-03-2022, 05:02 PM