m_world.destroyParticlesInShape(pshape, pxf);
ppd.shape = pshape;
ppd.color = color;
ppd.flags = m_particleFlags;
ppd.groupFlags = m_groupFlags;
ParticleGroup group = m_world.createParticleGroup(ppd);
if (m_lastGroup != null && group.getGroupFlags() == m_lastGroup.getGroupFlags()) {
m_world.joinParticleGroups(m_lastGroup, group);
} else {
m_lastGroup = group;
}
mouseTracing = false;