From a3661cc43ff67d20b676da38e37af9e87c0e397e Mon Sep 17 00:00:00 2001 From: yuni Date: Tue, 11 Jun 2024 05:11:31 +0200 Subject: [PATCH] add cruiser template --- src/cmd.rs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/cmd.rs b/src/cmd.rs index 77e13b0..14b4ab1 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -280,6 +280,42 @@ pub fn load_defs(mut ew_spawn: EventWriter) { // command: pointofinterest yes state.is_point_of_interest = true; } + ["template", "cruiser"] => { + // command: actor ? ? ? cruiser + state.class = DefClass::Actor; + state.model = Some("cruiser".to_string()); + + // command: scale 5 + state.model_scale = 5.0; + + // command: vehicle yes + state.is_vehicle = true; + + // command: angularmomentum 0 0 0 + state.angular_momentum = DVec3::ZERO; + + // command: collider handcrafted + state.collider_is_one_mesh_of_scene = true; + + // command: thrust 16 16 8 100000 3 + state.thrust_forward = 16.0; + state.thrust_back = 16.0; + state.thrust_sideways = 8.0; + state.reaction_wheels = 100000.0; + state.warmup_seconds = 3.0; + + // command: engine ion + state.engine_type = actor::EngineType::Ion; + + // command: camdistance 50 + state.camdistance = 50.0; + + // command: density 500 + state.density = 500.0; + + // command: pointofinterest yes + state.is_point_of_interest = true; + } // Parsing actors ["actor", x, y, z, model] => {