add cruiser template

This commit is contained in:
yuni 2024-06-11 05:11:31 +02:00
parent 2c1dacbf03
commit a3661cc43f

View file

@ -280,6 +280,42 @@ pub fn load_defs(mut ew_spawn: EventWriter<SpawnEvent>) {
// command: pointofinterest yes // command: pointofinterest yes
state.is_point_of_interest = true; 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 // Parsing actors
["actor", x, y, z, model] => { ["actor", x, y, z, model] => {