1266 lines
49 KiB
C#
1266 lines
49 KiB
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// This class holds all Model Definitions that will be used in the ModelManager
|
|
/// Is Planned to be replaced with a JSON Serializer
|
|
/// </summary>
|
|
public class ModelList
|
|
{
|
|
public static List<Color> DefaultColors = new List<Color>()
|
|
{
|
|
Color.black,
|
|
Color.gray,
|
|
Color.white,
|
|
Color.blue,
|
|
Color.green,
|
|
Color.red,
|
|
Color.yellow,
|
|
Color.magenta,
|
|
Color.cyan,
|
|
};
|
|
|
|
public static readonly List<BaseModel> BaseModels = new List<BaseModel>()
|
|
{
|
|
new BaseModel(
|
|
"Bike",
|
|
"bike",
|
|
Resources.Load<Mesh>("Model/Bicycle/Models/Low-Poly Bicycle"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Vector3.zero,
|
|
Quaternion.Euler(0, 90f, 0),
|
|
Vector3.one,
|
|
new List<Port>
|
|
{
|
|
Port.Choosable("Attachments", Definitions.PORT_BIKE_FRAME, "idBikeAttachments", new Vector3(0, 0, 0)),
|
|
Port.Choosable("Frame", Definitions.PORT_BIKE_FRAME2, "idBikeFrame", new Vector3(0, 0, 0)),
|
|
Port.Hidden(Definitions.PORT_BIKE_SPROCKET, "idBikeSprocket", new Vector3(0.007933f, 0.444f, -0.1614f)),
|
|
Port.Hidden(Definitions.PORT_BIKE_PEDAL_L, "idBikePedalL", new Vector3(-0.1252177f, 0.5490288f, -0.312027f)),
|
|
Port.Hidden(Definitions.PORT_BIKE_PEDAL_R, "idBikePedalR", new Vector3(0.1410843f, 0.3393247f, -0.01154391f)),
|
|
Port.Choosable("Handlebars", Definitions.PORT_BIKE_STEER, "idBikeHandlebars", new Vector3(0.002989591f, 1.214713f, 0.4860705f), Quaternion.Euler(-30f, 0f, 0f)),
|
|
Port.Choosable("Back Rim", Definitions.PORT_BIKE_RIM, "idBikeRim_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f)),
|
|
Port.Hidden(Definitions.PORT_BIKE_TIRE, "idBikeTire_Back", new Vector3(-0.01431298f, 0.4673222f, -0.7874681f)),
|
|
Port.Choosable("Front Rim", Definitions.PORT_BIKE_RIM, "idBikeRim_Front", new Vector3(0.01984263f, 0.4673225f, 0.9462124f)),
|
|
Port.Hidden( Definitions.PORT_BIKE_TIRE_FRONT, "idBikeTire_Front", new Vector3(0.01984263f, 0.4673225f, 0.9462124f)),
|
|
Port.Choosable("Driver", Definitions.PORT_BIKE_DRIVER, "nuke", new Vector3(0f, 1.25f, -0.65f), Quaternion.Euler(70f, 0f, 0f)),
|
|
}
|
|
),
|
|
new BaseModel(
|
|
"ERL-Bach",
|
|
"erlbach",
|
|
Resources.Load<Mesh>("Model/ERLbach/02.01.98.0000-ERLbach_vereinfacht_ohneFenster"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
new Vector3(0, 0, 4f), //big car needs big space
|
|
Quaternion.Euler(-90f, 0, 0f), //rotate correctly
|
|
new Vector3(0.03f, 0.03f, 0.03f), //because model is too big in space
|
|
new List<Port>
|
|
{
|
|
Port.Hidden(Definitions.PORT_ERLBACH_1, "idErlbachPart1", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_2, "idErlbachPart2", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_3, "idErlbachPart3", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_4, "idErlbachPart4", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_5, "idErlbachPart5", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_6, "idErlbachPart6", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_7, "idErlbachPart7", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_8, "idErlbachPart8", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_9, "idErlbachPart9", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_10, "idErlbachPart10", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_11, "idErlbachPart11", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_12, "idErlbachPart12", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_13, "idErlbachPart13", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_14, "idErlbachPart14", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_15, "idErlbachPart15", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_16, "idErlbachPart16", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_17, "idErlbachPart17", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_18, "idErlbachPart18", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_19, "idErlbachPart19", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_20, "idErlbachPart20", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_21, "idErlbachPart21", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_22, "idErlbachPart22", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_23, "idErlbachPart23", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_24, "idErlbachPart24", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_25, "idErlbachPart25", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_26, "idErlbachPart26", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_27, "idErlbachPart27", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_28, "idErlbachPart28", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_29, "idErlbachPart29", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_30, "idErlbachPart30", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_31, "idErlbachPart31", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_32, "idErlbachPart32", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_33, "idErlbachPart33", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_34, "idErlbachPart34", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_35, "idErlbachPart35", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_36, "idErlbachPart36", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_37, "idErlbachPart37", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_38, "idErlbachPart38", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_39, "idErlbachPart39", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_40, "idErlbachPart40", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_41, "idErlbachPart41", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_42, "idErlbachPart42", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_43, "idErlbachPart43", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_44, "idErlbachPart44", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_45, "idErlbachPart45", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_46, "idErlbachPart46", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_47, "idErlbachPart47", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_48, "idErlbachPart48", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_49, "idErlbachPart49", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_50, "idErlbachPart50", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_51, "idErlbachPart51", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_52, "idErlbachPart52", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_53, "idErlbachPart53", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_54, "idErlbachPart54", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_55, "idErlbachPart55", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_56, "idErlbachPart56", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_57, "idErlbachPart57", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_58, "idErlbachPart58", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_59, "idErlbachPart59", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_60, "idErlbachPart60", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_61, "idErlbachPart61", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_62, "idErlbachPart62", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_63, "idErlbachPart63", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_64, "idErlbachPart64", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_65, "idErlbachPart65", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_66, "idErlbachPart66", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_67, "idErlbachPart67", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_68, "idErlbachPart68", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_69, "idErlbachPart69", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_70, "idErlbachPart70", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_71, "idErlbachPart71", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_72, "idErlbachPart72", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_73, "idErlbachPart73", new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_BasePlate, "idErlbachPart74", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_FrontAxe, "idErlbachPart75", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(1f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_BatteriePack, "idErlbachPart76", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 0f, 1f)),
|
|
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.Choosable("Wheel Back Left", Definitions.Port_Erlbach_Wheel_LH, "idErlbachWheel_LH", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)),
|
|
Port.Choosable("Wheel Front Left", Definitions.Port_Erlbach_Wheel_LV, "idErlbachWheel_LV", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, -1f, 0f)),
|
|
Port.Choosable("Wheel Back Right", Definitions.PORT_ERLBACH_Wheel_RH, "idErlbachWheel_RH", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(0f, 1f, 0f)),
|
|
Port.Choosable("Wheel Front Right", Definitions.PORT_ERLBACH_Wheel_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)),
|
|
Port.Choosable("Number", Definitions.PORT_ERLBACH_Number, "idErlbachPart87", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(1f, 0f, 0f)),
|
|
Port.Choosable("License Plate", Definitions.PORT_ERLBACH_LicensePlate, "idErlbachPart88", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(1f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_LicensePlateContent, "idErlbachPart89", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(1f, 0f, 0f)),
|
|
Port.Choosable("Grill", Definitions.PORT_ERLBACH_Grill, "idErlbachPart90", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(-1f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_Refelctor_H, "idErlbachPart91", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(1f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V_Cover, "idErlbachPart92", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(-1f, 0f, 0f)),
|
|
Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V, "idErlbachPart93", new Vector3(0f, 0f, 0f), Quaternion.identity, 1f, new Vector3(-1f, 0f, 0f)),
|
|
}
|
|
)
|
|
};
|
|
public static readonly List<ChildModel> ChildModels = new List<ChildModel>()
|
|
{
|
|
new ChildModel(
|
|
Definitions.PORT_BIKE_DRIVER,
|
|
"Bacteria",
|
|
"bacteria",
|
|
Resources.Load<Mesh>("Plagues/Mesh/bacteria"),
|
|
Resources.Load<Material>($"Material/Universal"),
|
|
new Vector3(0f, 0.2f, 0.3f),
|
|
Quaternion.identity,
|
|
Vector3.one,
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.PORT_BIKE_DRIVER,
|
|
"ICBM",
|
|
"nuke",
|
|
Resources.Load<Mesh>("Plagues/Mesh/Nuke"),
|
|
Resources.Load<Material>($"Material/AluminiumScratched"),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.PORT_BIKE_RIM,
|
|
"30\" Rim",
|
|
"idBikeRim_HEX",
|
|
Resources.Load<Mesh>("Plagues/Mesh/Hex"),
|
|
Resources.Load<Material>($"Material/Universal"),
|
|
Vector3.zero,
|
|
Quaternion.Euler(0,90f,0),
|
|
new Vector3(2,2,1),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
//Felge 1
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Wheel_RH,
|
|
"Felge 1",
|
|
"radRH",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge1"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(60f, 65f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Wheel_RV,
|
|
"Felge 1",
|
|
"radRV",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge1"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-105f, 65f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.Port_Erlbach_Wheel_LV,
|
|
"Felge 1",
|
|
"radLV",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge1"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-105f, -30f, -15f), // offset to the port
|
|
Quaternion.Euler(0, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.Port_Erlbach_Wheel_LH,
|
|
"Felge 1",
|
|
"radLH",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge1"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-60f, -30f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
//Felge 2
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Wheel_RH,
|
|
"Felge 2",
|
|
"radRH2",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge2"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(60f, 65f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Wheel_RV,
|
|
"Felge 2",
|
|
"radRV2",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge2"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-105f, 65f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.Port_Erlbach_Wheel_LV,
|
|
"Felge 2",
|
|
"radLV2",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge2"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-105f, -30f, -15f), // offset to the port
|
|
Quaternion.Euler(0, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.Port_Erlbach_Wheel_LH,
|
|
"Felge 2",
|
|
"radLH2",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge2"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-60f, -30f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
//Felge 3
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Wheel_RH,
|
|
"Felge 3",
|
|
"radRH3",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge3"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(60f, 65f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Wheel_RV,
|
|
"Felge 3",
|
|
"radRV3",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge3"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-105f, 65f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.Port_Erlbach_Wheel_LV,
|
|
"Felge 3",
|
|
"radLV3",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge3"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-105f, -30f, -15f), // offset to the port
|
|
Quaternion.Euler(0, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.Port_Erlbach_Wheel_LH,
|
|
"Felge 3",
|
|
"radLH3",
|
|
Resources.Load<Mesh>($"Model/ERLbach/Felge3"),
|
|
Resources.Load<Material>($"Material/CarTire"),
|
|
new Vector3(-60f, -30f, -15f), // offset to the port
|
|
Quaternion.Euler(-180, 0, 0),
|
|
new Vector3(1f, 1f, 1f),
|
|
null,
|
|
DefaultColors
|
|
),
|
|
new ChildModel(
|
|
Definitions.PORT_ERLBACH_Grill,
|
|
"Grill",
|
|
"idErlbachGrill",
|
|
Resources.Load<Mesh>("Model/ERLbach/Grill1"),
|
|
Resources.Load<Material>("Material/Universal"),
|
|
new Vector3(-145f, -35f, 25f), // offset to the port
|
|
Quaternion.Euler(0f, 180f, -90f), // no rotation
|
|
new Vector3(1f, 1f, 1f), // scale
|
|
null, // no children
|
|
DefaultColors // default colors
|
|
)
|
|
};
|
|
|
|
static ModelList()
|
|
{
|
|
if (!ColorUtility.TryParseHtmlString("#4c00b0", out Color purple))
|
|
{
|
|
Debug.LogError("Who messed the purple Hex code up?");
|
|
return;
|
|
}
|
|
DefaultColors.Add(purple);
|
|
|
|
/*
|
|
* ██████ ██ ██ ██ ███████
|
|
* ██ ██ ██ ██ ██ ██
|
|
* ██████ ██ █████ █████
|
|
* ██ ██ ██ ██ ██ ██
|
|
* ██████ ██ ██ ██ ███████
|
|
*/
|
|
ModelLoader.LoadChildFromPackedModel(ChildModels,
|
|
new List<ModelElement>
|
|
{
|
|
new ModelElement(Definitions.PORT_BIKE_FRAME, "Attachments", "idBikeAttachments", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_FRAME2, "Frame", "idBikeFrame", Resources.Load<Material>($"Material/Universal"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_SPROCKET, "Sprocket", "idBikeSprocket", Resources.Load<Material>($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
|
|
new ModelElement(Definitions.PORT_BIKE_PEDAL_L, "Left Pedal", "idBikePedalL", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_PEDAL_R, "Right Pedal", "idBikePedalR", Resources.Load<Material>($"Material/PVC"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_STEER, "Handlebars", "idBikeHandlebars", Resources.Load<Material>($"Material/AluminiumScratched"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_RIM, "Back Wheel", "idBikeRim_Back", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_TIRE, "Back Wheel2", "idBikeTire_Back", Resources.Load<Material>($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null),
|
|
new ModelElement(Definitions.PORT_BIKE_RIM, "Front Wheel", "idBikeRim_Front", Resources.Load<Material>($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors),
|
|
new ModelElement(Definitions.PORT_BIKE_TIRE_FRONT, "Front Wheel2", "idBikeTire_Front", Resources.Load<Material>($"Material/PlasticCable"), Vector3.zero, Quaternion.identity, Vector3.one, null, null)
|
|
},
|
|
Resources.LoadAll<Mesh>($"Model/Bicycle/Models/Low-Poly Bicycle"),
|
|
0);
|
|
|
|
/*
|
|
* ███████ ██████ ██ ██████ █████ ██████ ██ ██
|
|
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
|
* █████ ██████ ██ █████ ██████ ███████ ██ ███████
|
|
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
|
* ███████ ██ ██ ███████ ██████ ██ ██ ██████ ██ ██
|
|
*/
|
|
|
|
ModelLoader.LoadChildModelsFromPackedModel(
|
|
ChildModels,
|
|
new string[93] // port
|
|
{
|
|
Definitions.PORT_ERLBACH_1,
|
|
Definitions.PORT_ERLBACH_2,
|
|
Definitions.PORT_ERLBACH_3,
|
|
Definitions.PORT_ERLBACH_4,
|
|
Definitions.PORT_ERLBACH_5,
|
|
Definitions.PORT_ERLBACH_6,
|
|
Definitions.PORT_ERLBACH_7,
|
|
Definitions.PORT_ERLBACH_8,
|
|
Definitions.PORT_ERLBACH_9,
|
|
Definitions.PORT_ERLBACH_10,
|
|
Definitions.PORT_ERLBACH_11,
|
|
Definitions.PORT_ERLBACH_12,
|
|
Definitions.PORT_ERLBACH_13,
|
|
Definitions.PORT_ERLBACH_14,
|
|
Definitions.PORT_ERLBACH_15,
|
|
Definitions.PORT_ERLBACH_16,
|
|
Definitions.PORT_ERLBACH_17,
|
|
Definitions.PORT_ERLBACH_18,
|
|
Definitions.PORT_ERLBACH_19,
|
|
Definitions.PORT_ERLBACH_20,
|
|
Definitions.PORT_ERLBACH_21,
|
|
Definitions.PORT_ERLBACH_22,
|
|
Definitions.PORT_ERLBACH_23,
|
|
Definitions.PORT_ERLBACH_24,
|
|
Definitions.PORT_ERLBACH_25,
|
|
Definitions.PORT_ERLBACH_26,
|
|
Definitions.PORT_ERLBACH_27,
|
|
Definitions.PORT_ERLBACH_28,
|
|
Definitions.PORT_ERLBACH_29,
|
|
Definitions.PORT_ERLBACH_30,
|
|
Definitions.PORT_ERLBACH_31,
|
|
Definitions.PORT_ERLBACH_32,
|
|
Definitions.PORT_ERLBACH_33,
|
|
Definitions.PORT_ERLBACH_34,
|
|
Definitions.PORT_ERLBACH_35,
|
|
Definitions.PORT_ERLBACH_36,
|
|
Definitions.PORT_ERLBACH_37,
|
|
Definitions.PORT_ERLBACH_38,
|
|
Definitions.PORT_ERLBACH_39,
|
|
Definitions.PORT_ERLBACH_40,
|
|
Definitions.PORT_ERLBACH_41,
|
|
Definitions.PORT_ERLBACH_42,
|
|
Definitions.PORT_ERLBACH_43,
|
|
Definitions.PORT_ERLBACH_44,
|
|
Definitions.PORT_ERLBACH_45,
|
|
Definitions.PORT_ERLBACH_46,
|
|
Definitions.PORT_ERLBACH_47,
|
|
Definitions.PORT_ERLBACH_48,
|
|
Definitions.PORT_ERLBACH_49,
|
|
Definitions.PORT_ERLBACH_50,
|
|
Definitions.PORT_ERLBACH_51,
|
|
Definitions.PORT_ERLBACH_52,
|
|
Definitions.PORT_ERLBACH_53,
|
|
Definitions.PORT_ERLBACH_54,
|
|
Definitions.PORT_ERLBACH_55,
|
|
Definitions.PORT_ERLBACH_56,
|
|
Definitions.PORT_ERLBACH_57,
|
|
Definitions.PORT_ERLBACH_58,
|
|
Definitions.PORT_ERLBACH_59,
|
|
Definitions.PORT_ERLBACH_60,
|
|
Definitions.PORT_ERLBACH_61,
|
|
Definitions.PORT_ERLBACH_62,
|
|
Definitions.PORT_ERLBACH_63,
|
|
Definitions.PORT_ERLBACH_64,
|
|
Definitions.PORT_ERLBACH_65,
|
|
Definitions.PORT_ERLBACH_66,
|
|
Definitions.PORT_ERLBACH_67,
|
|
Definitions.PORT_ERLBACH_68,
|
|
Definitions.PORT_ERLBACH_69,
|
|
Definitions.PORT_ERLBACH_70,
|
|
Definitions.PORT_ERLBACH_71,
|
|
Definitions.PORT_ERLBACH_72,
|
|
Definitions.PORT_ERLBACH_73,
|
|
Definitions.PORT_ERLBACH_BasePlate,
|
|
Definitions.PORT_ERLBACH_FrontAxe,
|
|
Definitions.PORT_ERLBACH_BatteriePack,
|
|
Definitions.PORT_ERLBACH_77,
|
|
Definitions.PORT_ERLBACH_78,
|
|
Definitions.PORT_ERLBACH_79,
|
|
Definitions.Port_Erlbach_Wheel_LH,
|
|
Definitions.Port_Erlbach_Wheel_LV,
|
|
Definitions.PORT_ERLBACH_Wheel_RH,
|
|
Definitions.PORT_ERLBACH_Wheel_RV,
|
|
Definitions.PORT_ERLBACH_Body,
|
|
Definitions.PORT_ERLBACH_Bumper,
|
|
Definitions.PORT_ERLBACH_FrontBumper,
|
|
Definitions.PORT_ERLBACH_Number,
|
|
Definitions.PORT_ERLBACH_LicensePlate,
|
|
Definitions.PORT_ERLBACH_LicensePlateContent,
|
|
Definitions.PORT_ERLBACH_Grill,
|
|
Definitions.PORT_ERLBACH_Refelctor_H,
|
|
Definitions.PORT_ERLBACH_Headlight_V_Cover,
|
|
Definitions.PORT_ERLBACH_Headlight_V,
|
|
},
|
|
new string[93] //human name
|
|
{
|
|
"Erlbach Part 1",
|
|
"Erlbach Part 2",
|
|
"Erlbach Part 3",
|
|
"Erlbach Part 4",
|
|
"Erlbach Part 5",
|
|
"Erlbach Part 6",
|
|
"Erlbach Part 7",
|
|
"Erlbach Part 8",
|
|
"Erlbach Part 9",
|
|
"Erlbach Part 10",
|
|
"Erlbach Part 11",
|
|
"Erlbach Part 12",
|
|
"Erlbach Part 13",
|
|
"Erlbach Part 14",
|
|
"Erlbach Part 15",
|
|
"Erlbach Part 16",
|
|
"Erlbach Part 17",
|
|
"Erlbach Part 18",
|
|
"Erlbach Part 19",
|
|
"Erlbach Part 20",
|
|
"Erlbach Part 21",
|
|
"Erlbach Part 22",
|
|
"Erlbach Part 23",
|
|
"Erlbach Part 24",
|
|
"Erlbach Part 25",
|
|
"Erlbach Part 26",
|
|
"Erlbach Part 27",
|
|
"Erlbach Part 28",
|
|
"Erlbach Part 29",
|
|
"Erlbach Part 30",
|
|
"Erlbach Part 31",
|
|
"Erlbach Part 32",
|
|
"Erlbach Part 33",
|
|
"Erlbach Part 34",
|
|
"Erlbach Part 35",
|
|
"Erlbach Part 36",
|
|
"Erlbach Part 37",
|
|
"Erlbach Part 38",
|
|
"Erlbach Part 39",
|
|
"Erlbach Part 40",
|
|
"Erlbach Part 41",
|
|
"Erlbach Part 42",
|
|
"Erlbach Part 43",
|
|
"Erlbach Part 44",
|
|
"Erlbach Part 45",
|
|
"Erlbach Part 46",
|
|
"Erlbach Part 47",
|
|
"Erlbach Part 48",
|
|
"Erlbach Part 49",
|
|
"Erlbach Part 50",
|
|
"Erlbach Part 51",
|
|
"Erlbach Part 52",
|
|
"Erlbach Part 53",
|
|
"Erlbach Part 54",
|
|
"Erlbach Part 55",
|
|
"Erlbach Part 56",
|
|
"Erlbach Part 57",
|
|
"Erlbach Part 58",
|
|
"Erlbach Part 59",
|
|
"Erlbach Part 60",
|
|
"Erlbach Part 61",
|
|
"Erlbach Part 62",
|
|
"Erlbach Part 63",
|
|
"Erlbach Part 64",
|
|
"Erlbach Part 65",
|
|
"Erlbach Part 66",
|
|
"Erlbach Part 67",
|
|
"Erlbach Part 68",
|
|
"Erlbach Part 69",
|
|
"Erlbach Part 70",
|
|
"Erlbach Part 71",
|
|
"Erlbach Part 72",
|
|
"Erlbach Part 73",
|
|
"Erlbach Part BasePlate",
|
|
"Erlbach Part FrontAxe",
|
|
"Erlbach Part BatteriePack",
|
|
"Erlbach Part 77",
|
|
"Erlbach Part 78",
|
|
"Erlbach Part 79",
|
|
"Erlbach Part Wheel LH",
|
|
"Erlbach Part Wheel LV",
|
|
"Erlbach Part Wheel RH",
|
|
"Erlbach Part Wheel RV",
|
|
"Erlbach Part Body",
|
|
"Erlbach Part Bumper",
|
|
"Erlbach Part FrontBumper",
|
|
"Erlbach Part Number",
|
|
"Erlbach Part LicensePlate",
|
|
"Erlbach Part LicensePlateContent",
|
|
"Erlbach Part Grill",
|
|
"Erlbach Part Refelctor_H",
|
|
"Erlbach Part Headlight_V_Cover",
|
|
"Erlbach Part Headlight_V",
|
|
|
|
},
|
|
new string[93] //id
|
|
{
|
|
"idErlbachPart1",
|
|
"idErlbachPart2",
|
|
"idErlbachPart3",
|
|
"idErlbachPart4",
|
|
"idErlbachPart5",
|
|
"idErlbachPart6",
|
|
"idErlbachPart7",
|
|
"idErlbachPart8",
|
|
"idErlbachPart9",
|
|
"idErlbachPart10",
|
|
"idErlbachPart11",
|
|
"idErlbachPart12",
|
|
"idErlbachPart13",
|
|
"idErlbachPart14",
|
|
"idErlbachPart15",
|
|
"idErlbachPart16",
|
|
"idErlbachPart17",
|
|
"idErlbachPart18",
|
|
"idErlbachPart19",
|
|
"idErlbachPart20",
|
|
"idErlbachPart21",
|
|
"idErlbachPart22",
|
|
"idErlbachPart23",
|
|
"idErlbachPart24",
|
|
"idErlbachPart25",
|
|
"idErlbachPart26",
|
|
"idErlbachPart27",
|
|
"idErlbachPart28",
|
|
"idErlbachPart29",
|
|
"idErlbachPart30",
|
|
"idErlbachPart31",
|
|
"idErlbachPart32",
|
|
"idErlbachPart33",
|
|
"idErlbachPart34",
|
|
"idErlbachPart35",
|
|
"idErlbachPart36",
|
|
"idErlbachPart37",
|
|
"idErlbachPart38",
|
|
"idErlbachPart39",
|
|
"idErlbachPart40",
|
|
"idErlbachPart41",
|
|
"idErlbachPart42",
|
|
"idErlbachPart43",
|
|
"idErlbachPart44",
|
|
"idErlbachPart45",
|
|
"idErlbachPart46",
|
|
"idErlbachPart47",
|
|
"idErlbachPart48",
|
|
"idErlbachPart49",
|
|
"idErlbachPart50",
|
|
"idErlbachPart51",
|
|
"idErlbachPart52",
|
|
"idErlbachPart53",
|
|
"idErlbachPart54",
|
|
"idErlbachPart55",
|
|
"idErlbachPart56",
|
|
"idErlbachPart57",
|
|
"idErlbachPart58",
|
|
"idErlbachPart59",
|
|
"idErlbachPart60",
|
|
"idErlbachPart61",
|
|
"idErlbachPart62",
|
|
"idErlbachPart63",
|
|
"idErlbachPart64",
|
|
"idErlbachPart65",
|
|
"idErlbachPart66",
|
|
"idErlbachPart67",
|
|
"idErlbachPart68",
|
|
"idErlbachPart69",
|
|
"idErlbachPart70",
|
|
"idErlbachPart71",
|
|
"idErlbachPart72",
|
|
"idErlbachPart73",
|
|
"idErlbachPart74",
|
|
"idErlbachPart75",
|
|
"idErlbachPart76",
|
|
"idErlbachPart77",
|
|
"idErlbachPart78",
|
|
"idErlbachPart79",
|
|
"idErlbachWheel_LH",
|
|
"idErlbachWheel_LV",
|
|
"idErlbachWheel_RH",
|
|
"idErlbachWheel_RV",
|
|
"idErlbachPart84",
|
|
"idErlbachPart85",
|
|
"idErlbachPart86",
|
|
"idErlbachPart87",
|
|
"idErlbachPart88",
|
|
"idErlbachPart89",
|
|
"idErlbachPart90",
|
|
"idErlbachPart91",
|
|
"idErlbachPart92",
|
|
"idErlbachPart93",
|
|
|
|
},
|
|
Resources.LoadAll<Mesh>($"Model/ERLbach/02.01.98.0000-ERLbach_vereinfacht_ohneFenster"),
|
|
new Material[93] //mat
|
|
{
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"), // front wheel arches
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/CarTire"), //wheel
|
|
Resources.Load<Material>($"Material/CarTire"), //wheel
|
|
Resources.Load<Material>($"Material/CarTire"), //wheel
|
|
Resources.Load<Material>($"Material/CarTire"), //wheel
|
|
Resources.Load<Material>($"Material/AluminiumBrushed"), //hood
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/AluminiumBrushed"), //front
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Default"),
|
|
Resources.Load<Material>($"Material/Universal"), // Grill Gatter
|
|
Resources.Load<Material>($"Material/Default"), //KZ land
|
|
Resources.Load<Material>($"Material/Universal"), // grill outline
|
|
Resources.Load<Material>($"Material/MetalMesh"), // grill mesh
|
|
|
|
},
|
|
new Vector3[93] // positions
|
|
{
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero, // wheel RH
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
Vector3.zero,
|
|
},
|
|
new Quaternion[93] // rotations
|
|
{
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
Quaternion.identity,
|
|
},
|
|
new Vector3[93] // scales
|
|
{
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
Vector3.one,
|
|
},
|
|
new List<Port>[93] // ports
|
|
{
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
|
|
},
|
|
new List<Color>[93] // colors
|
|
{
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
DefaultColors, // wheel
|
|
DefaultColors, // wheel
|
|
DefaultColors, // wheel
|
|
DefaultColors, // wheel
|
|
DefaultColors,
|
|
DefaultColors,
|
|
DefaultColors,
|
|
DefaultColors,
|
|
DefaultColors,
|
|
null,
|
|
DefaultColors,
|
|
null,
|
|
null,
|
|
null,
|
|
},
|
|
1 //skip the first mesh, which is the baseModel
|
|
);
|
|
}
|
|
}
|