chrono::particlefactory::ChCallbackPostCreation Class Referenceabstract

Description

Inherit from this class and pass an object to the PostCreation() functions of particle creator, to have the callback executed per each created particle.

Ex. use this to add optional assets, custom materials or settings.

#include <ChRandomShapeCreator.h>

Public Member Functions

virtual void PostCreation (std::shared_ptr< ChBody > mbody, ChCoordsys<> mcoords, ChRandomShapeCreator &mcreator)=0
 Implement this function if you want to provide the post creation callback.