1#ifndef __H__SYSTEMS_PHYSICS__
2#define __H__SYSTEMS_PHYSICS__
13 *v = vec2_add(*v, vec2_scale(*v, payload.
delta_time));
14 printf(
"%f %f\n", v->
x, v->
y);
#define ASSERT__(expr)
Definition defs.h:21
@ ENTITY_KIND_CONSTRUCT
Definition entity.h:37
static void system_integrate_velocity(system_req_t payload, allocator_t temporary_allocator)
Definition physics.h:6
static entity_iter_t system_req_entity_iter(system_req_t *req)
Definition require.h:127
A generic allocator type passed by value. Contains a fallback allocator and a set of function pointer...
Definition memory.h:30
vec2 velocity
Definition construct.h:67
entity_t * entity
Definition world.h:114
construct_t as_construct
Definition entity.h:54
entity_kind_t kind
Definition entity.h:45
double delta_time
Definition require.h:65
float y
Definition vec2.h:12
float x
Definition vec2.h:12
static bool entity_iter_next(entity_iter_t *it)
Definition world.h:137