blob: 9784e2f24433471adb4c70dc6f98a4fc867ada31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
How to add a new collision operator:
Create a class that inherits from CollisionBase and include the method doCollisions
that does the operation. The constructor should call the CollisionBase constructor with
the collision name argument and read in any input parameters with a prefix of the
collision name that are specific to the operator.
Then modify CollisionHandler.cpp to include the header file of the new class.
In its constructor, add an if block for the input collision type creating an
instance of the new class in the allcollisions vector. Follow PairWiseCoulombCollision
as an example.
|