From 641884fde5acb23169b6e8a32ad6615285859ca4 Mon Sep 17 00:00:00 2001 From: yuni Date: Sat, 30 Nov 2024 00:37:22 +0100 Subject: [PATCH] add appropriate densities/masses for rocky things --- src/cmd.rs | 20 ++++++++++---------- src/data/defs.txt | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/cmd.rs b/src/cmd.rs index 9065b90..0de4e32 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -922,8 +922,8 @@ fn spawn_scenes( // command: camdistance 4000 state.camdistance = 4000.0; - // command: density 100000 - state.density = 100000.0; + // command: density 7000 + state.density = 7000.0; // command: pointofinterest yes state.is_point_of_interest = true; @@ -981,8 +981,8 @@ fn spawn_scenes( state.collider_is_one_mesh_of_scene = true; state.collider_is_mesh = true; - // command: density 50000 - state.density = 50000.0; + // command: density 5000 + state.density = 5000.0; } "lightorb" => { state.model = Some("lightorb".to_string()); @@ -1056,8 +1056,8 @@ fn spawn_scenes( state.collider_is_one_mesh_of_scene = true; state.collider_is_mesh = true; - // command: density 5000 - state.density = 5000.0; + // command: density 7000 + state.density = 7000.0; } "hideout" => { state.model = Some("hollow_asteroid".to_string()); @@ -1075,8 +1075,8 @@ fn spawn_scenes( // command: pointofinterest yes state.is_point_of_interest = true; - // command: density 10000000000 - state.density = 10000000000.0; + // command: density 7000 + state.density = 7000.0; // command: angularmomentum 0 0.015 0 state.angular_momentum = DVec3::new(0.0, 0.015, 0.0); @@ -1096,8 +1096,8 @@ fn spawn_scenes( // command: pointofinterest yes state.is_point_of_interest = true; - // command: density 5000 - state.density = 5000.0; + // command: density 7000 + state.density = 7000.0; // command: angularmomentum 0 0 0 state.angular_momentum = DVec3::ZERO; diff --git a/src/data/defs.txt b/src/data/defs.txt index 1dbac8d..255aae9 100644 --- a/src/data/defs.txt +++ b/src/data/defs.txt @@ -171,7 +171,7 @@ actor 0 0 0 orbitaround jupiter 221900e3 orbit_phase_offset 0.0003 collider handcrafted - density 10000000000 + density 7000 scale 6e3 angularmomentum 0.01 0 0 actor 120e3 0 0 metis @@ -179,7 +179,7 @@ actor 0 0 0 relativeto jupiter orbitaround jupiter 221900e3 collider handcrafted - density 10000000000 + density 7000 scale 2e3 angularmomentum 0.4 2.0 0.3 actor -40e3 0 90e3 metis @@ -187,7 +187,7 @@ actor 0 0 0 relativeto jupiter orbitaround jupiter 221900e3 collider handcrafted - density 10000000000 + density 7000 scale 4e3 angularmomentum 0.02 0.01 0.0 actor 0 0 0 io @@ -397,7 +397,7 @@ actor 5000 0 -3000 metis name Moonlet collider handcrafted relativeto player - density 10000000000 + density 7000 scale 500 angularmomentum 0 0.015 0