Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  ReattachingParticle
#10
(10-03-2022, 10:01 AM)alex798 Wrote: Looks good, but doubt it's ideal for my case- the least random way to reproduce issue is to disable rope, move target and reanable it- in this case shift stay the same (in more random way is hard to test...) - is it possible to call some function to reattach (or maybe don't update attachment in OnEnable?)

Ok, I think I understand now. This you're talking about is the intended behavior.

When you disable the rope, or remove the attachment and re-add it, the attachment will automatically call Bind(). What this does is it attaches the rope particle at its current position relative to the target.

If you always want the rope to be attached at a specific point, you want to manually set the particle position and then call Bind() afterwards. Anytime you call Bind(), the particle's current position/orientation will be used as the reference position/orientation to attach it.

This topic was also brought up by another user in this thread, might be helpful:
http://obi.virtualmethodstudio.com/forum...-3344.html
Reply


Messages In This Thread
ReattachingParticle - by alex798 - 21-02-2022, 04:08 PM
RE: ReattachingParticle - by josemendez - 24-02-2022, 08:53 AM
RE: ReattachingParticle - by alex798 - 09-03-2022, 02:11 PM
RE: ReattachingParticle - by josemendez - 09-03-2022, 02:51 PM
RE: ReattachingParticle - by alex798 - 10-03-2022, 09:05 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 09:32 AM
RE: ReattachingParticle - by alex798 - 10-03-2022, 09:39 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 09:43 AM
RE: ReattachingParticle - by alex798 - 10-03-2022, 10:01 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 10:36 AM
RE: ReattachingParticle - by alex798 - 10-03-2022, 10:50 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 11:01 AM
RE: ReattachingParticle - by alex798 - 10-03-2022, 11:24 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 11:37 AM
RE: ReattachingParticle - by alex798 - 10-03-2022, 11:42 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 11:51 AM
RE: ReattachingParticle - by josemendez - 10-03-2022, 11:54 AM
RE: ReattachingParticle - by alex798 - 10-03-2022, 12:13 PM
RE: ReattachingParticle - by josemendez - 10-03-2022, 12:26 PM
RE: ReattachingParticle - by alex798 - 15-03-2022, 03:50 PM