From d7959b104d50fe1fa80a5705f01e90b494ffd652 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 30 Jun 2025 22:35:43 +0200 Subject: [PATCH] clarify modellist naming --- .../Assets/Scripts/Models/Definitions.cs | 16 ++-- .../Assets/Scripts/Models/ModelList.cs | 74 +++++++++---------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/vr-configurator/Assets/Scripts/Models/Definitions.cs b/vr-configurator/Assets/Scripts/Models/Definitions.cs index 6732a87..9b04f94 100644 --- a/vr-configurator/Assets/Scripts/Models/Definitions.cs +++ b/vr-configurator/Assets/Scripts/Models/Definitions.cs @@ -96,14 +96,14 @@ public class Definitions public const string PORT_ERLBACH_77 = "portErlbach77"; public const string PORT_ERLBACH_78 = "portErlbach78"; public const string PORT_ERLBACH_79 = "portErlbach79"; - public const string Port_Erlbach_Wheel_LH = "wheel_LH"; - public const string Port_Erlbach_Wheel_LV = "wheel_LV"; - public const string PORT_ERLBACH_Wheel_RV = "wheel_RV"; - public const string PORT_ERLBACH_Wheel_RH = "wheel_RH"; - public const string Port_Erlbach_Tire = "tire"; - public const string Port_Erlbach_Tire1 = "tire1"; - public const string Port_Erlbach_Tire2 = "tire2"; - public const string Port_Erlbach_Tire3 = "tire3"; + public const string PORT_ERL_RIM_LH = "erlRimLH"; + public const string PORT_ERL_RIM_LV = "erlRimLV"; + public const string PORT_ERL_RIM_RV = "erlRimRV"; + public const string PORT_ERL_RIM_RH = "erlRimRH"; + public const string PORT_ERL_TIRE_LH = "erlTire"; + public const string PORT_ERL_TIRE_LV = "tire1"; + public const string PORT_ERL_TIRE_RH = "tire2"; + public const string PORT_ERL_TIRE_RV = "tire3"; public const string PORT_ERLBACH_Body = "body"; public const string PORT_ERLBACH_Bumper = "portErlbach85"; public const string PORT_ERLBACH_FrontBumper = "portErlbach86"; diff --git a/vr-configurator/Assets/Scripts/Models/ModelList.cs b/vr-configurator/Assets/Scripts/Models/ModelList.cs index 4541605..1fbc6b9 100644 --- a/vr-configurator/Assets/Scripts/Models/ModelList.cs +++ b/vr-configurator/Assets/Scripts/Models/ModelList.cs @@ -134,14 +134,14 @@ public class ModelList Port.Hidden(Definitions.PORT_ERLBACH_77, "idErlbachPart77", new Vector3(0f, 0f, 0f)), Port.Hidden(Definitions.PORT_ERLBACH_78, "idErlbachPart78", new Vector3(0f, 0f, 0f)), Port.Hidden(Definitions.PORT_ERLBACH_79, "idErlbachPart79", new Vector3(0f, 0f, 0f)), - Port.Hidden(Definitions.Port_Erlbach_Tire, "LH", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), - Port.Choosable("Wheel Back Right", Definitions.Port_Erlbach_Wheel_LH, "idErlbachWheel_LH", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), - Port.Hidden(Definitions.Port_Erlbach_Tire1, "LV", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), - Port.Choosable("Wheel Front Right", Definitions.Port_Erlbach_Wheel_LV, "idErlbachWheel_LV", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), - Port.Hidden(Definitions.Port_Erlbach_Tire2, "RH", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), - Port.Choosable("Wheel Back Left", Definitions.PORT_ERLBACH_Wheel_RH, "idErlbachWheel_RH", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), - Port.Hidden(Definitions.Port_Erlbach_Tire3, "RV", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), - Port.Choosable("Wheel Front Left", Definitions.PORT_ERLBACH_Wheel_RV, "idErlbachWheel_RV", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), + Port.Hidden(Definitions.PORT_ERL_TIRE_LH, "LH", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), + Port.Choosable("Wheel Back Right", Definitions.PORT_ERL_RIM_LH, "idErlbachWheel_LH", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), + Port.Hidden(Definitions.PORT_ERL_TIRE_LV, "LV", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), + Port.Choosable("Wheel Front Right", Definitions.PORT_ERL_RIM_LV, "idErlbachWheel_LV", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)), + Port.Hidden(Definitions.PORT_ERL_TIRE_RH, "RH", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), + Port.Choosable("Wheel Back Left", Definitions.PORT_ERL_RIM_RH, "idErlbachWheel_RH", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), + Port.Hidden(Definitions.PORT_ERL_TIRE_RV, "RV", new Vector3(0f,0f,0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), + Port.Choosable("Wheel Front Left", Definitions.PORT_ERL_RIM_RV, "idErlbachWheel_RV", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)), Port.Choosable("Body", Definitions.PORT_ERLBACH_Body, "idErlbachPart84", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 0f, 1f)), Port.Choosable("Bumper", Definitions.PORT_ERLBACH_Bumper, "idErlbachPart85", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(1f, 0f, 0f)), Port.Choosable("Front Bumper", Definitions.PORT_ERLBACH_FrontBumper, "idErlbachPart86", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(-1f, 0f, 0f)), @@ -192,7 +192,7 @@ public class ModelList ), //Felge 1 new ChildModel( - Definitions.PORT_ERLBACH_Wheel_RH, + Definitions.PORT_ERL_RIM_RH, "Felge 1", "radRH", Resources.Load($"Model/ERLbach/Felge1"), @@ -204,7 +204,7 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.PORT_ERLBACH_Wheel_RV, + Definitions.PORT_ERL_RIM_RV, "Felge 1", "radRV", Resources.Load($"Model/ERLbach/Felge1"), @@ -216,7 +216,7 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.Port_Erlbach_Wheel_LV, + Definitions.PORT_ERL_RIM_LV, "Felge 1", "radLV", Resources.Load($"Model/ERLbach/Felge1"), @@ -228,9 +228,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.Port_Erlbach_Wheel_LH, + Definitions.PORT_ERL_RIM_LH, "Felge 1", - "radLH", + "rimLH", Resources.Load($"Model/ERLbach/Felge1"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-60f, -30f, -15f), // offset to the port @@ -241,9 +241,9 @@ public class ModelList ), //Felge 2 new ChildModel( - Definitions.PORT_ERLBACH_Wheel_RH, + Definitions.PORT_ERL_RIM_RH, "Felge 2", - "radRH2", + "erlRimRH2", Resources.Load($"Model/ERLbach/Felge2"), Resources.Load($"Material/AluminiumScratched"), new Vector3(60f, 65f, -15f), // offset to the port @@ -253,9 +253,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.PORT_ERLBACH_Wheel_RV, + Definitions.PORT_ERL_RIM_RV, "Felge 2", - "radRV2", + "erlRimRV2", Resources.Load($"Model/ERLbach/Felge2"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-105f, 65f, -15f), // offset to the port @@ -265,9 +265,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.Port_Erlbach_Wheel_LV, + Definitions.PORT_ERL_RIM_LV, "Felge 2", - "radLV2", + "erlRimLV2", Resources.Load($"Model/ERLbach/Felge2"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-105f, -30f, -15f), // offset to the port @@ -277,9 +277,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.Port_Erlbach_Wheel_LH, + Definitions.PORT_ERL_RIM_LH, "Felge 2", - "radLH2", + "erlRimLH2", Resources.Load($"Model/ERLbach/Felge2"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-60f, -30f, -15f), // offset to the port @@ -290,9 +290,9 @@ public class ModelList ), //Felge 3 new ChildModel( - Definitions.PORT_ERLBACH_Wheel_RH, + Definitions.PORT_ERL_RIM_RH, "Felge 3", - "radRH3", + "erlRimRH3", Resources.Load($"Model/ERLbach/Felge3"), Resources.Load($"Material/AluminiumScratched"), new Vector3(60f, 65f, -15f), // offset to the port @@ -302,9 +302,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.PORT_ERLBACH_Wheel_RV, + Definitions.PORT_ERL_RIM_RV, "Felge 3", - "radRV3", + "erlRimRV3", Resources.Load($"Model/ERLbach/Felge3"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-105f, 65f, -15f), // offset to the port @@ -314,9 +314,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.Port_Erlbach_Wheel_LV, + Definitions.PORT_ERL_RIM_LV, "Felge 3", - "radLV3", + "erlRimLV3", Resources.Load($"Model/ERLbach/Felge3"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-105f, -30f, -15f), // offset to the port @@ -326,9 +326,9 @@ public class ModelList DefaultColors ), new ChildModel( - Definitions.Port_Erlbach_Wheel_LH, + Definitions.PORT_ERL_RIM_LH, "Felge 3", - "radLH3", + "erlRimLH3", Resources.Load($"Model/ERLbach/Felge3"), Resources.Load($"Material/AluminiumScratched"), new Vector3(-60f, -30f, -15f), // offset to the port @@ -474,14 +474,14 @@ public class ModelList new ModelElement( Definitions.PORT_ERLBACH_77, "Erlbach Part 77", "idErlbachPart77", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( Definitions.PORT_ERLBACH_78, "Erlbach Part 78", "idErlbachPart78", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( Definitions.PORT_ERLBACH_79, "Erlbach Part 79", "idErlbachPart79", Resources.Load($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement(Definitions.Port_Erlbach_Tire, "Erlbach Part Tire LH", "LH", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( Definitions.Port_Erlbach_Wheel_LH, "Erlbach Part Wheel LH", "idErlbachWheel_LH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement(Definitions.Port_Erlbach_Tire1, "Erlbach Part Tire LH", "LV", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( Definitions.Port_Erlbach_Wheel_LV, "Erlbach Part Wheel LV", "idErlbachWheel_LV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement(Definitions.Port_Erlbach_Tire2, "Erlbach Part Tire LH", "RH", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( Definitions.PORT_ERLBACH_Wheel_RH, "Erlbach Part Wheel RH", "idErlbachWheel_RH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), - new ModelElement(Definitions.Port_Erlbach_Tire3, "Erlbach Part Tire LH", "RV", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement( Definitions.PORT_ERLBACH_Wheel_RV, "Erlbach Part Wheel RV", "idErlbachWheel_RV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( Definitions.PORT_ERL_TIRE_LH, "Erlbach Part Tire LH", "LH", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), + new ModelElement( Definitions.PORT_ERL_RIM_LH, "Erlbach Part Wheel LH", "idErlbachWheel_LH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( Definitions.PORT_ERL_TIRE_LV, "Erlbach Part Tire LV", "LV", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), + new ModelElement( Definitions.PORT_ERL_RIM_LV, "Erlbach Part Wheel LV", "idErlbachWheel_LV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( Definitions.PORT_ERL_TIRE_RH, "Erlbach Part Tire RH", "RH", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), + new ModelElement( Definitions.PORT_ERL_RIM_RH, "Erlbach Part Wheel RH", "idErlbachWheel_RH", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), + new ModelElement( Definitions.PORT_ERL_TIRE_RV, "Erlbach Part Tire RV", "RV", Resources.Load($"Material/CarTire"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), + new ModelElement( Definitions.PORT_ERL_RIM_RV, "Erlbach Part Wheel RV", "idErlbachWheel_RV", Resources.Load($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_Body, "Erlbach Part Body", "idErlbachPart84", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_Bumper, "Erlbach Part Bumper", "idErlbachPart85", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_FrontBumper, "Erlbach Part FrontBumper", "idErlbachPart86", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),