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.

18 lines
229 B

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