Simulate thousands of n-Pendula (up to 32) with Position Based Dynamics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
241 B

1 year ago
#include <vector>
#include <cstdint>
class Pendulum;
class Simulation {
public:
explicit Simulation();
double size = 50;
double gravity;
double timescale;
1 year ago
int substeps;
bool isPlaying = false;
std::vector<Pendulum *> pendula;
1 year ago
};