21 lines
571 B
C++
21 lines
571 B
C++
#ifndef DELTA_ENTITY
|
|
#define DELTA_ENTITY
|
|
|
|
#include <SDL3/SDL.h>
|
|
|
|
#include "renderer/camera.hpp"
|
|
#include "math.hpp"
|
|
|
|
class DeltaEntity {
|
|
public:
|
|
DeltaVector3 pos;
|
|
DeltaVector3 velocity;
|
|
DeltaVector2 angle;
|
|
|
|
DeltaEntity() {pos.x = 0; pos.y = 0; pos.z = 0; velocity = DeltaVector3(); angle = DeltaVector2();};
|
|
DeltaEntity(float x, float y, float z) {pos.x = x; pos.y = y; pos.z = z; velocity = DeltaVector3(); angle = DeltaVector2(); };
|
|
void draw(SDL_Renderer *renderer);
|
|
void update(float deltaTime);
|
|
};
|
|
|
|
#endif |