summaryrefslogtreecommitdiffhomepage
path: root/Oscillating.h
blob: d596e0f4b9409a835bfa7210ae76ab3a46d9e8ac (plain)
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;
};