wip: implement a smaller data model to reduce copying from physics to main thread
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
|
||||
#include <raylib.h>
|
||||
|
||||
#define BARNES_HUT // Use octree BH instead of uniform grid
|
||||
// #define WEB // Disables multithreading
|
||||
|
||||
// Window
|
||||
@ -30,7 +29,7 @@ constexpr float ROT_SPEED = 1.0;
|
||||
constexpr float CAMERA_SMOOTH_SPEED = 15.0;
|
||||
|
||||
// Physics Engine
|
||||
constexpr float SIM_SPEED = 0.2; // How large each update should be
|
||||
constexpr float SIM_SPEED = 1.0; // How large each update should be
|
||||
constexpr float TIMESTEP = 1.0 / 90; // Do 90 physics updates per second
|
||||
constexpr float MASS = 1.0; // Mass spring system
|
||||
constexpr float SPRING_CONSTANT = 5.0; // Mass spring system
|
||||
|
||||
Reference in New Issue
Block a user