14 Oct
2022
14 Oct
'22
12:17 a.m.
struct particle_t { float pos[4], vel[4], accel[4]; }; void particle_update(particle_t * p, float time) { for (int coord = 0; coord < 4; coord += 1) { pos[coord] += vel[coord] * time; vel[coord] += accel[coord] * time; } }