Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particle attachments not woriking
#1
Like the sample DeformationGradient, I am trying to move SoftBody with respect to Target, but it does not move.

Possibly, I am using the following method to generate the SoftBody, is there any relationship between this method and Particle attachments?
http://obi.virtualmethodstudio.com/manua...ctors.html


Particle group cannot be changed because the list box does not appear when selected.

It is always None.
Reply
#2
(01-12-2023, 12:41 PM)KBTIT_ Wrote: Particle group cannot be changed because the list box does not appear when selected.

It is always None.

This means your blueprint contains no particle groups. Particle groups are something that you must create yourself, both when creating a blueprint via the editor or programmatically. How would Obi know which particles you're interested in grouping together otherwise? You must somehow define which particles should be affected by the attachment, and this is done by creating a new particle group.

To add a particle group to a blueprint, use

Code:
var group = blueprint.AppendNewParticleGroup(name);

then add the desired particle indices to the group:

Code:
group.particleIndices.Add(particleIndex);

The name of the particle group will then appear to be selected in attachments.

kind regards,
Reply