14 glm::vec2 pos{12.0f, 0.0f};
15 glm::vec2 size{1.0f, 1.0f};
16 glm::vec4 colour{1.0f, 0.5f, 0.0f, 1.0f};
18 ObstacleType type = ObstacleType::SmallBox;
28 Obstacle(ObstacleType t,
float x = 12.0f);
31 void reset(
float x = 12.0f);
34 bool collidesWith(
const glm::vec2 &otherPos,
const glm::vec2 &otherSize)
const;
37 float getBottomY()
const {
return pos.y - size.y * 0.5f; }