nParticle self-collision data


#1

Hi
Is there any way to get collision data of self-colliding nparticles, like we can with nparticles colliding with geometry? e.g. collision force
Tx


#2

You need to add the attribute collisionSelfComponentId. If that attribute exists it tracks self collision data and the other attributes like collisionForce will then get set set on selfCollision( in addition to collision with other objects). Note that in some cases a particle may during the solve step collide many times with different elements… the returned values are for the last collision within the solve step only. I’m not sure if self collisions will set meaningful data for all the collide data… such as collisionNormal, which really makes sense more for meshes.


#3

Tx Duncan - that’s exactly what I was looking for. Maya is proving to be a very useful tool for scientific simulations.