start of electromagnetism Tesla would be proud

This commit is contained in:
Pierre committed 2026-09-30 22:26:06 +02:00
1 parent 397d818c62
commit 9fcf86cbbf
3 files changed
+3 -9

No files matched your search

+2
View File
@@ -2,6 +2,7 @@
#include "consts.h"
#include "mechanics.h"
#include "magnetism.h"
#include <bits/time.h>
#include <math.h>
#include <pthread.h>
@@ -31,6 +32,7 @@ void *physics(void *args) {
while (true) {
clock_gettime(CLOCK_MONOTONIC, &ct);
mechanics(uni);
magnetism(uni);
ot = ct;
long long elapsed = timespec_diff_ns(ct, ot);
long long remaining = TIMESTEP / simx - elapsed;