๐Ÿ“ฆ Voultapher / Veng

๐Ÿ“„ Bullet.h ยท 21 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#pragma once

#include <glm/glm.hpp>

#include <veng/ObjectPhysics2D.h>

class Bullet
{
public:
	Bullet(int lifeTime, veng::ObjectPhysics2D* objectLink);
	~Bullet();

	veng::ObjectPhysics2D* objectPhysics;

	bool update(); // retuns true when lifeTime is 0

private:
	int _lifeTime;
};