first commit

This commit is contained in:
dox
2023-02-11 23:18:45 -05:00
commit d723f08969
307 changed files with 38708 additions and 0 deletions

27
src/game/ecs/c_rotation.h Normal file
View File

@ -0,0 +1,27 @@
/*
* DESCRIPTION:
* c_rotation.c header.
*/
#pragma once
#include "entity.h"
#define C_ROTATION_ANGLE_DEFAULT (PI / 2)
#define C_ROTATION_VELOCITY_DEFAULT -2.5f
#define C_ROTATION_LIMIT 0xFF
struct CRotation
{
u32 id;
bool isDisabled;
f32 velocity;
f32 friction;
f32 angle;
f32 speed;
f32 velocityMax;
};
void c_rotation_set(struct CRotation* self, f32 speed, f32 speedMax, f32 friction);
void c_rotation_register(void);