1 2 3 4 5 6 7 8 9 10
#include <math.h> #include "player.h" int player_update(player_t *player) { player->anglesin = sinf(player->angle); player->anglecos = cosf(player->angle); return 0; }