NVIDIAGameWorks / FleX

Other
646 stars 99 forks source link

Particle position NaN #97

Open qi55wyqu opened 4 years ago

qi55wyqu commented 4 years ago

I'm using meshes of comparably small size for soft bodies, so I need to set the particleSpacing in NvFlexExtCreateSoftFromMesh() to small values around 0.01. If I use a spacing below 0.012, the particle positions become NaN. Also for higher spacings that produce correct particle positions, the particles' velocity at rest is around 10^-6, so they will move even when they shouldn't. Is there a problem with small particle spacings in Flex or am I doing something wrong? What causes the positions to be NaN?