fix grill position

This commit is contained in:
Tim
2025-07-18 01:20:46 +02:00
parent 66d77a774e
commit 481f6cf302

View File

@@ -132,7 +132,7 @@ public class ModelList
Port.Hidden(PortDef.ERL_BADGE, "idErlbachPart87", Vector3.zero, Quaternion.identity, 1f, new Vector3(50f, 0f, 0f)),
Port.Hidden(PortDef.ERL_LP_BASE, "idErlbachPart88", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)),
Port.Choosable("License Plate", PortDef.ERL_LP_TC, "erlLP", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)),
Port.Choosable("Grill", PortDef.ERL_GRILL, "erlGrill_1", new Vector3(2.5f, 0f, -0.5f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Choosable("Grill", PortDef.ERL_GRILL, "erlGrill_1", Vector3.zero, Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Choosable("Headlight Cover", PortDef.ERL_BUMPER_FRONT, "idErlbachPart92", new Vector3(2.4f, 0f, -5.1f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Hidden(PortDef.ERL_DRL_PLATE, "idErlbachPart93", new Vector3(2.1f, 0f, -5.3f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Choosable("Window", PortDef.ERL_WINDOW, "idErlbachWindow", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 100f)),
@@ -301,7 +301,7 @@ public class ModelList
"erlGrill_2",
Resources.Load<Mesh>("Model/ERLbach/Grill1"),
Resources.Load<Material>("Material/AluminiumBrushed"),
new Vector3(-145f, -34.3f, 24.5f), // offset to the port
new Vector3(-142.5f, -34.3f, 24f), // offset to the port new Vector3(2.5f, 0f, -0.5f)
Quaternion.Euler(0f, 180f, -90f), // no rotation
new Vector3(1f, 1f, 1f), // scale
null, // no children
@@ -457,7 +457,7 @@ public class ModelList
new ModelElement(PortDef.ERL_LP_BASE, "License Plate", "idErlbachPart88", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumPolished),
new ModelElement(PortDef.ERL_LP_TEXT, "License Plate Content", "idErlbachPart89", Resources.Load<Material>($"Material/Universal"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
new ModelElement(PortDef.ERL_LP_COUNTRY, "Erlbach Part 90", "idErlbachPart90", Resources.Load<Material>($"Material/Universal"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
new ModelElement(PortDef.ERL_GRILL, "Standard Grill", "erlGrill_1", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed),
new ModelElement(PortDef.ERL_GRILL, "Standard Grill", "erlGrill_1", Resources.Load<Material>($"Material/AluminiumBrushed"), new Vector3(2.5f, 0f, -0.5f), Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed),
new ModelElement(PortDef.ERL_BUMPER_FRONT, "Headlight Cover", "idErlbachPart92", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorAluminiumBrushed),
new ModelElement(PortDef.ERL_DRL_PLATE, "Headlight", "idErlbachPart93", Resources.Load<Material>($"Material/MetalMesh"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
new ModelElement(PortDef.ERL_WINDOW, "Window", "idErlbachWindow", Resources.Load<Material>($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, ModelListColors.ColorGlass),