blob: 17c75b3ecef8555c42ceea0e77e40751da548020 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
pub const WINDOW_TITLE: &str = "pxs";
pub const CHUNK_SIZE: i32 = 128;
pub const CELLS_IN_CHUNK: usize = (CHUNK_SIZE * CHUNK_SIZE) as usize;
pub const CAMERA_MOVEMENT_SPEED: f32 = 2400.0;
pub const SIM_FPS: u32 = 120;
// pub const SIM_DELTA_TIME: f32 = 1.0 / SIM_FPS as f32;
pub const PHYSICS_FPS: u32 = 60;
pub const PHYSICS_DELTA_TIME: f32 = 1.0 / PHYSICS_FPS as f32;
pub const CELLS_TO_METRES: f32 = 20.0;
// 10x10 square of steel = 0.5m^2 = 150kg with density 150
pub const MASS_SCALING: f32 = 1.0 / 200.0;
pub const SETTLED_THRESOHLD: u8 = 7;
|