Skip to content
Snippets Groups Projects
Physical.hpp 417 B
Newer Older
  • Learn to ignore specific revisions
  • BATON Theau's avatar
    BATON Theau committed
    #pragma once
    
    
    #include <functional>
    
    
    BATON Theau's avatar
    BATON Theau committed
    #include "Component.hpp"
    
    #include <utility/Identifiable.hpp>
    
    BATON Theau's avatar
    BATON Theau committed
    
    namespace megu::kernel {
        template <class Pe>
        class Physical : public Component<Pe> {
            public:
    
                virtual void on_collide(const Kernel &, const Pe &, Physical &, double) = 0;
    
                using CollideLambda = std::function<void(const Kernel &, const Pe &, const Physical &, double)>;