blob: f52196c32b10af85d319868cd127adbdb147ca37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "api/Transform.h"
namespace crepe {
class Particle {
public:
Vector2 position;
Vector2 velocity;
Vector2 force_over_time;
uint32_t lifespan;
bool active = false;
uint32_t time_in_life = 0;
double angle;
Particle() = default;
void reset(uint32_t lifespan, Vector2 position, Vector2 velocity,double angle);
void update();
void stop_movement();
};
} // namespace crepe
|