16-06-2022, 11:50 AM
(16-06-2022, 11:12 AM)josemendez Wrote: Sure, it's pretty simple:
Code:// get the group:
var group = cloth.clothBlueprint.groups[groupIndex];
// create an attachment:
var attachment = cloth.AddComponent<ObiParticleAttachment>();
attachment.particleGroup = group;
attachment.target = yourTransform;
// move your transform:
yourTransform.position = newPos;
Thank you so much!