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;
  }
}
  • [spam][crazy... Undescribed Horrific Abuse, One Victim & Survivor of Many
    • Re: [sp... Undescribed Horrific Abuse, One Victim & Survivor of Many
      • Re:... Undescribed Horrific Abuse, One Victim & Survivor of Many
        • ... Undescribed Horrific Abuse, One Victim & Survivor of Many
          • ... Undescribed Horrific Abuse, One Victim & Survivor of Many
            • ... Undescribed Horrific Abuse, One Victim & Survivor of Many
              • ... Undescribed Horrific Abuse, One Victim & Survivor of Many
                • ... Undescribed Horrific Abuse, One Victim & Survivor of Many

Reply via email to