21-02-2023, 05:10 PM
Hi all,
I have an issue regarding Obi Particle Attachments in regards with the Obi Cloth.
I have the setup (as visualized in the attachments) with 3 ObiParticle Attachments
2 attachments are on object X with Particle Group 1
1 attachment is on object Y with Particle Group 2
(i am using Objects at the X and Y position to detect overlap for when it should be attached together, and 1 attachment to switch between the 2 different object to actually snap them together)
When changing the Target manually via the inspector of one of the X Attachments to the same Target as the Y attachment the cloth forms a circle and the position of the particles is snapped together,
this behaviour is what i am looking for but instead of manually setting the Target i want to do the same via script.
Instead of snapping the X particles to the Y particles it seems they keep their positional offset when the Target is changed.
I cannot find the piece of code that would provide this change in behaviour when either setting the Target from the inspector or the Target in the ObiParticleAttachment and would like some help or clarification.
Thanks in advance.
I have an issue regarding Obi Particle Attachments in regards with the Obi Cloth.
I have the setup (as visualized in the attachments) with 3 ObiParticle Attachments
2 attachments are on object X with Particle Group 1
1 attachment is on object Y with Particle Group 2
(i am using Objects at the X and Y position to detect overlap for when it should be attached together, and 1 attachment to switch between the 2 different object to actually snap them together)
When changing the Target manually via the inspector of one of the X Attachments to the same Target as the Y attachment the cloth forms a circle and the position of the particles is snapped together,
this behaviour is what i am looking for but instead of manually setting the Target i want to do the same via script.
Instead of snapping the X particles to the Y particles it seems they keep their positional offset when the Target is changed.
I cannot find the piece of code that would provide this change in behaviour when either setting the Target from the inspector or the Target in the ObiParticleAttachment and would like some help or clarification.
Thanks in advance.