Untitled
Loading...
Searching...
No Matches
entity_states.c
Go to the documentation of this file.
1
2#include "entity_states.h"
3
6#include "entity.h"
7
8void ESTATE_chair_interact(void * data)
9{
10
11 Entity * ent = (Entity*)data;
12
14 MeshNode * mn = &mns[ent->mesh_node];
15 mn->translation.z += 0.2;
17
18
19}
20
21
22void ESTATE_chair_combat(void * data)
23{
24
25 Entity * ent = (Entity*)data;
26
27
28}
29
30
Vector mesh_nodes
MeshNodes.
int mesh_node
The top-most MeshNode that belongs to this Entity.
Globals GLOBALS
Engine Globals.
Definition main.c:310
Entity structure that holds components and references to the data it owns.
mat4 compose_trs_from_mesh_node(MeshNode *mn)
ECS creation and maintenance.
void ESTATE_chair_combat(void *data)
void ESTATE_chair_interact(void *data)
ECS registry for behaviors.
vec3 translation
MeshNodes that describe the position of Meshes, GLTF nodes for GLTFAnimations, or hold references to ...
float z
Definition types.h:12
#define CAST_VEC(vec, type)
Definition utilities.h:134