NVIDIAGameWorks / FleX

Other
650 stars 100 forks source link

Forces #43

Closed DarylDunlap closed 6 years ago

DarylDunlap commented 6 years ago

Is it possible to define custom Forces?

mmacklin commented 6 years ago

You can implement custom forces using the callbacks mechanism. See the NvFlexExtSetForceFields() and "Force Field" scene in the demo (forcefield.h) for an example of how to do this. Alternatively you can apply forces on the CPU by modifying particle velocities directly.