Compare commits
2
Commits
aa4f0dfe52
...
e7cd82c720
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7cd82c720 | ||
|
|
9fcf86cbbf |
No files matched your search
@@ -3,7 +3,11 @@
|
|||||||
#include "consts.h"
|
#include "consts.h"
|
||||||
#include "gravity.h"
|
#include "gravity.h"
|
||||||
#include "mechanics.h"
|
#include "mechanics.h"
|
||||||
|
<<<<<<< HEAD
|
||||||
|
#include "magnetism.h"
|
||||||
|
=======
|
||||||
#include "objects.h"
|
#include "objects.h"
|
||||||
|
>>>>>>> aa4f0dfe52bab37ef3bf82a47c44316c74c3ccbc
|
||||||
#include <bits/time.h>
|
#include <bits/time.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
@@ -35,6 +39,7 @@ void *physics(void *args) {
|
|||||||
clock_gettime(CLOCK_MONOTONIC, &ct);
|
clock_gettime(CLOCK_MONOTONIC, &ct);
|
||||||
// gravity(uni);
|
// gravity(uni);
|
||||||
mechanics(uni);
|
mechanics(uni);
|
||||||
|
magnetism(uni);
|
||||||
ot = ct;
|
ot = ct;
|
||||||
long long elapsed = timespec_diff_ns(ct, ot);
|
long long elapsed = timespec_diff_ns(ct, ot);
|
||||||
long long remaining = TIMESTEP / simx - elapsed;
|
long long remaining = TIMESTEP / simx - elapsed;
|
||||||
|
|||||||
Reference in new issue
Block a user