SPH
|
Composite handler, choosing another collision handler if the primary handler rejects the collision by returning CollisionResult::NONE. More...
#include <Collision.h>
Public Member Functions | |
FallbackHandler (const RunSettings &settings) | |
virtual void | initialize (Storage &storage) override |
virtual CollisionResult | collide (const Size i, const Size j, FlatSet< Size > &toRemove) override |
Computes the outcome of collision between i-th and j-th particle. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Composite handler, choosing another collision handler if the primary handler rejects the collision by returning CollisionResult::NONE.
Definition at line 331 of file Collision.h.
|
inline |
Definition at line 337 of file Collision.h.
|
inlineoverridevirtual |
Computes the outcome of collision between i-th and j-th particle.
It is guaranteed that this function is called after initialize has been called (at least once) and that the storage object passed to initialize is valid, so it is allowed (and recommended) to storage a pointer to the storage.
i,j | Indices of particles in the storage. |
toRemove | Indices of particles to be removed from the storage. May already contain some indices, collision handler should only add new indices and it shall not clear the storage. |
Implements ICollisionHandler.
Definition at line 346 of file Collision.h.
|
inlineoverridevirtual |
Implements ICollisionHandler.
Definition at line 341 of file Collision.h.