11 lines
250 B
C
11 lines
250 B
C
#include "component_physics.h"
|
|
|
|
void
|
|
component_physics_tick(ComponentPhysics* self, ECS* ecs)
|
|
{
|
|
glm_vec3_add(self->velocity, self->position, self->position);
|
|
|
|
if (keyboard_held(&ecs->input->keyboard, KEYBOARD_KEY_D))
|
|
self->position[0] += 1.0f;
|
|
}
|