1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include <raylib.h> #include "Behaviour.h" #include "Generator.h" class Oscillating : virtual public Behaviour { public: Oscillating(); void update(float dt, Vector2& position, Generator& generator) override; void set_phase(float phase); private: float m_phase; float m_shift; };