Swarm-NG  1.1
swarm::monitors::stop_on_collision< log_t > Class Template Reference

Simple monitor to detect physical collisions. More...

#include <stop_on_collision.hpp>

Public Member Functions

GPUAPI bool pass_one (int thread_in_system)
 check for close encounters and return status of need_full_test
 
GPUAPI int pass_two (int thread_in_system)
 Check if deactivate the system and return the status.
 
GPUAPI bool check_close_encounters (const int &i, const int &j)
 Check close encounters.
 
GPUAPI stop_on_collision (const params &p, ensemble::SystemRef &s, log_t &l)
 default constructor for stop_on_collision
 

Detailed Description

template<class log_t>
class swarm::monitors::stop_on_collision< log_t >

Simple monitor to detect physical collisions.

EXPERIMENTAL: This class is not thoroughly tested.

Signals and logs if current separation between any two bodies is less than "collision_distance_to_origin". WARNING: Does not interpolate between steps

Definition at line 67 of file stop_on_collision.hpp.


The documentation for this class was generated from the following file: