Fix erlbach rim positon and grille

This commit is contained in:
FlorianSpeicher
2025-07-09 11:18:57 +02:00
parent 56fb7ccb4b
commit 86dee6eeda
2 changed files with 30 additions and 30 deletions

View File

@@ -1271,9 +1271,9 @@ RectTransform:
- {fileID: 2141376354} - {fileID: 2141376354}
m_Father: {fileID: 1976633620} m_Father: {fileID: 1976633620}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 459.6, y: -246.65}
m_SizeDelta: {x: 624, y: 493.3} m_SizeDelta: {x: 624, y: 493.3}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &89481405 --- !u!114 &89481405
@@ -1547,7 +1547,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -0.00024407906} m_AnchoredPosition: {x: 0, y: -0.00024407906}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: -16, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!114 &103570489 --- !u!114 &103570489
MonoBehaviour: MonoBehaviour:
@@ -25369,9 +25369,9 @@ RectTransform:
- {fileID: 1541654562} - {fileID: 1541654562}
m_Father: {fileID: 1976633620} m_Father: {fileID: 1976633620}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 20, y: -194.7}
m_SizeDelta: {x: 40, y: 389.4} m_SizeDelta: {x: 40, y: 389.4}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1494770816 --- !u!114 &1494770816
@@ -25708,7 +25708,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!222 &1509914125 --- !u!222 &1509914125
CanvasRenderer: CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -27239,7 +27239,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1591058970} m_GameObject: {fileID: 1591058970}
m_Enabled: 0 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3} m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
m_Name: m_Name:
@@ -27300,7 +27300,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1591058970} m_GameObject: {fileID: 1591058970}
m_Enabled: 1 m_Enabled: 0
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2518c50cb3fc6a6458d4b743c2f69c7d, type: 3} m_Script: {fileID: 11500000, guid: 2518c50cb3fc6a6458d4b743c2f69c7d, type: 3}
m_Name: m_Name:
@@ -28171,9 +28171,9 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 1976633620} m_Father: {fileID: 1976633620}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 93.8, y: -8}
m_SizeDelta: {x: 40, y: 16} m_SizeDelta: {x: 40, y: 16}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1643928004 --- !u!114 &1643928004
@@ -29893,7 +29893,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 2.793, y: -1.917} m_AnchoredPosition: {x: 2.793, y: -1.917}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 807.60004, y: 541.3}
m_Pivot: {x: 1, y: 0} m_Pivot: {x: 1, y: 0}
--- !u!114 &1748687178 --- !u!114 &1748687178
MonoBehaviour: MonoBehaviour:
@@ -33936,10 +33936,10 @@ RectTransform:
- {fileID: 89481404} - {fileID: 89481404}
m_Father: {fileID: 1748687177} m_Father: {fileID: 1748687177}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 409.80002, y: -270.65}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 771.60004, y: 493.3}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1976633621 --- !u!114 &1976633621
MonoBehaviour: MonoBehaviour:
@@ -37807,10 +37807,10 @@ RectTransform:
- {fileID: 2051844014} - {fileID: 2051844014}
m_Father: {fileID: 89481404} m_Father: {fileID: 89481404}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 312, y: -246.65}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 624, y: 493.3}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2141376355 --- !u!114 &2141376355
MonoBehaviour: MonoBehaviour:

View File

@@ -144,12 +144,12 @@ public class ModelList
Port.Choosable("Rims", Definitions.PORT_ERL_RIMS, "erlRims_1", Vector3.zero, Quaternion.identity, 1f), Port.Choosable("Rims", Definitions.PORT_ERL_RIMS, "erlRims_1", Vector3.zero, Quaternion.identity, 1f),
Port.Choosable("Body", Definitions.PORT_ERLBACH_Body, "idErlbachPart84", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 100f)), Port.Choosable("Body", Definitions.PORT_ERLBACH_Body, "idErlbachPart84", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 100f)),
Port.Choosable("Rear Bumper", Definitions.PORT_ERLBACH_Bumper, "idErlbachPart85", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)), Port.Choosable("Rear Bumper", Definitions.PORT_ERLBACH_Bumper, "idErlbachPart85", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)),
Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V_Cover, "idErlbachPart86", new Vector3(2.1f, 0f, 0f), Quaternion.identity, 1f, new Vector3(-10f, 0f, 0f)), Port.Choosable("Front", Definitions.PORT_ERLBACH_Headlight_V_Cover, "idErlbachPart86", new Vector3(2.1f, 0f, 0f), Quaternion.identity, 1f, new Vector3(-10f, 0f, 0f)),
Port.Choosable("Number", Definitions.PORT_ERLBACH_Number, "idErlbachPart87", Vector3.zero, Quaternion.identity, 1f, new Vector3(50f, 0f, 0f)), Port.Choosable("Number", Definitions.PORT_ERLBACH_Number, "idErlbachPart87", Vector3.zero, Quaternion.identity, 1f, new Vector3(50f, 0f, 0f)),
Port.Choosable("License Plate", Definitions.PORT_ERLBACH_LicensePlate, "idErlbachPart88", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)), Port.Choosable("License Plate", Definitions.PORT_ERLBACH_LicensePlate, "idErlbachPart88", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)),
Port.Hidden(Definitions.PORT_ERLBACH_LicensePlateContent, "idErlbachPart89", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)), Port.Hidden(Definitions.PORT_ERLBACH_LicensePlateContent, "idErlbachPart89", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)),
Port.Hidden(Definitions.PORT_ERLBACH_90, "idErlbachPart90", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)), Port.Hidden(Definitions.PORT_ERLBACH_90, "idErlbachPart90", Vector3.zero, Quaternion.identity, 1f, new Vector3(20f, 0f, 0f)),
Port.Choosable("Grille", Definitions.PORT_ERLBACH_GRILL, "idErlbachPart91", new Vector3(2.5f, 0f, 3f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)), Port.Choosable("Grille", Definitions.PORT_ERLBACH_GRILL, "idErlbachPart91", new Vector3(2.5f, 0f, -0.5f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Choosable("Front Bumper", Definitions.PORT_ERLBACH_FrontBumper, "idErlbachPart92", new Vector3(2.4f, 0f, -5.1f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)), Port.Choosable("Front Bumper", Definitions.PORT_ERLBACH_FrontBumper, "idErlbachPart92", new Vector3(2.4f, 0f, -5.1f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V, "idErlbachPart93", new Vector3(2.1f, 0f, -5.3f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)), Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V, "idErlbachPart93", new Vector3(2.1f, 0f, -5.3f), Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)),
Port.Choosable("Glas", Definitions.PORT_ERLBACH_Windows, "idErlbachGlas", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 100f)), Port.Choosable("Glas", Definitions.PORT_ERLBACH_Windows, "idErlbachGlas", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 100f)),
@@ -244,7 +244,7 @@ public class ModelList
"erlRim2_LV", "erlRim2_LV",
Resources.Load<Mesh>($"Model/ERLbach/Felge1"), Resources.Load<Mesh>($"Model/ERLbach/Felge1"),
Resources.Load<Material>($"Material/AluminiumScratched"), Resources.Load<Material>($"Material/AluminiumScratched"),
new Vector3(-105f, -30f, -15f), // offset to the port new Vector3(-105f, -44f, -15f), // offset to the port
Quaternion.Euler(0, 0, 0), Quaternion.Euler(0, 0, 0),
new Vector3(1f, 1f, 1f), new Vector3(1f, 1f, 1f),
null, null,
@@ -256,7 +256,7 @@ public class ModelList
"erlRim2_LH", "erlRim2_LH",
Resources.Load<Mesh>($"Model/ERLbach/Felge1"), Resources.Load<Mesh>($"Model/ERLbach/Felge1"),
Resources.Load<Material>($"Material/AluminiumScratched"), Resources.Load<Material>($"Material/AluminiumScratched"),
new Vector3(-60f, -30f, -15f), // offset to the port new Vector3(60f, -44f, -15f), // offset to the port
Quaternion.Euler(-180, 0, 0), Quaternion.Euler(-180, 0, 0),
new Vector3(1f, 1f, 1f), new Vector3(1f, 1f, 1f),
null, null,
@@ -293,7 +293,7 @@ public class ModelList
"erlRim3_LV", "erlRim3_LV",
Resources.Load<Mesh>($"Model/ERLbach/Felge3"), Resources.Load<Mesh>($"Model/ERLbach/Felge3"),
Resources.Load<Material>($"Material/AluminiumScratched"), Resources.Load<Material>($"Material/AluminiumScratched"),
new Vector3(-105f, -30f, -15f), // offset to the port new Vector3(-105f, -44f, -15f), // offset to the port
Quaternion.Euler(0, 0, 0), Quaternion.Euler(0, 0, 0),
new Vector3(1f, 1f, 1f), new Vector3(1f, 1f, 1f),
null, null,
@@ -305,7 +305,7 @@ public class ModelList
"erlRim3_LH", "erlRim3_LH",
Resources.Load<Mesh>($"Model/ERLbach/Felge3"), Resources.Load<Mesh>($"Model/ERLbach/Felge3"),
Resources.Load<Material>($"Material/AluminiumScratched"), Resources.Load<Material>($"Material/AluminiumScratched"),
new Vector3(-60f, -30f, -15f), // offset to the port new Vector3(60f, -44f, -15f), // offset to the port
Quaternion.Euler(-180, 0, 0), Quaternion.Euler(-180, 0, 0),
new Vector3(1f, 1f, 1f), new Vector3(1f, 1f, 1f),
null, null,
@@ -318,7 +318,7 @@ public class ModelList
"idErlbachGrill", "idErlbachGrill",
Resources.Load<Mesh>("Model/ERLbach/Grill1"), Resources.Load<Mesh>("Model/ERLbach/Grill1"),
Resources.Load<Material>("Material/AluminiumBrushed"), Resources.Load<Material>("Material/AluminiumBrushed"),
new Vector3(-145f, -35f, 25f), // offset to the port new Vector3(-145f, -34.3f, 24.5f), // offset to the port
Quaternion.Euler(0f, 180f, -90f), // no rotation Quaternion.Euler(0f, 180f, -90f), // no rotation
new Vector3(1f, 1f, 1f), // scale new Vector3(1f, 1f, 1f), // scale
null, // no children null, // no children
@@ -452,7 +452,7 @@ public class ModelList
new ModelElement( Definitions.PORT_ERL_RIM_RV, "Standard Rim", "erlRim1_RV", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERL_RIM_RV, "Standard Rim", "erlRim1_RV", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
new ModelElement( Definitions.PORT_ERLBACH_Body, "Body", "idErlbachPart84", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_Body, "Body", "idErlbachPart84", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
new ModelElement( Definitions.PORT_ERLBACH_Bumper, "Rear Bumper", "idErlbachPart85", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_Bumper, "Rear Bumper", "idErlbachPart85", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
new ModelElement( Definitions.PORT_ERLBACH_Headlight_V_Cover, "Headlight Cover", "idErlbachPart86", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( Definitions.PORT_ERLBACH_Headlight_V_Cover, "Headlight Cover", "idErlbachPart86", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
new ModelElement( Definitions.PORT_ERLBACH_Number, "Number", "idErlbachPart87", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_Number, "Number", "idErlbachPart87", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
new ModelElement( Definitions.PORT_ERLBACH_LicensePlate, "License Plate", "idErlbachPart88", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_LicensePlate, "License Plate", "idErlbachPart88", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ),
new ModelElement( Definitions.PORT_ERLBACH_LicensePlateContent, "License Plate Content", "idErlbachPart89", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), new ModelElement( Definitions.PORT_ERLBACH_LicensePlateContent, "License Plate Content", "idErlbachPart89", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ),