Mahlzeit allerseits,
vielleicht kann mir hier jemand weiterhelfen. Ich versuche mich gerade an einem Kettenfahrzeug und bin mittlerweile an den PhysX-Einstellungen am verzweifeln.
Derzeit weis ich nicht wo ich anfangen soll, um das Teil vernünftig zum Laufen zu bekommen.
Aktuell ruckt das Teil beim Anfahren und dreht sich auch gern mal beliebig um die eigene Achse.
Letztmalig, als ich halbwegs ein vernünftiges Fahrverhalten hatte, hat das Fahrzeug jedoch immer Kurven nach links oder rechts gefahren.
Danach habe ich noch mit den verschiedenen Parametern rumprobiert und mittlerweile fährt das Teil wie eine Karre Mist.
Ich habe mich dabei erstmal an den BI-Beispielen orientiert, komme mit den Einstellungen aber irgendwie nicht wirklich klar.
Hat vielleicht irgendjemand Vorschläge, wie man da am besten rangeht ?
Danke schonmal im Voraus.
- simulation = tankX;
- driveOnComponent[] = {"Track_L","Track_R"};
- enginePower = 250; //582;
- maxOmega = 276;
- peakTorque = 4500;
- maxSpeed = 35;
- numberPhysicalWheels = 12;
- normalSpeedForwardCoef = 0.85;
- engineMOI = 9;
- dampingRateFullThrottle = 0.3;
- dampingRateZeroThrottleClutchEngaged = 8;
- dampingRateZeroThrottleClutchDisengaged = 0.25;
- accelAidForceCoef = 4;
- accelAidForceYOffset = -1;
- accelAidForceSpd = 13;
- terrainCoef = 0;
- turnCoef = 5;
- torqueCurve[]=
- {
- {
- "(700/2640)",
- 0
- },
- {
- "(1600/2640)",
- "(2650/2850)"
- },
- {
- "(1800/2640)",
- "(2800/2850)"
- },
- {
- "(1900/2640)",
- "(2850/2850)"
- },
- {
- "(2000/2640)",
- "(2800/2850)"
- },
- {
- "(2200/2640)",
- "(2750/2850)"
- },
- {
- "(2400/2640)",
- "(2600/2850)"
- },
- {
- "(4900/2640)",
- "(0/2850)"
- }
- };
- thrustDelay = 0.1; /// how much time does it take to get the full thrust (default 1), used to reduce initial wheel slipping
- clutchStrength = 180.0;
- fuelCapacity = 80;
- fuelConsumption = 0.5;
- brakeIdleSpeed = 0.1; /// speed in m/s below which braking is applied
- latency = 0.1;
- tankTurnForce = 188000; //88000; /// Random magic number, expected to be something like 11 x mass of vehicle
- tankTurnForceAngSpd = 2;
- /// Gearbox and transmission
- idleRpm = 700; // RPM at which the engine idles.
- redRpm = 2640; // RPM at which the engine redlines.
- engineLosses = 25; // power losses on the engine's crank-shaft (before the gearbox) in Nm. (Multiplied by the gear ratio)
- transmissionLosses = 15; // power losses on wheel axis (in/after the gearbox) in Nm. (Constant)
- antiRollbarForceCoef=15;
- antiRollbarForceLimit=12;
- antiRollbarSpeedMin=30;
- antiRollbarSpeedMax=55;
- class complexGearbox {
- GearboxRatios[]=
- {
- "R1",
- -2.2349999,
- "N",
- 0,
- "CD0",
- "2*(0.75^(-10))",
- "CD1",
- "2*(0.75^(-9))",
- "CD2",
- "2*(0.75^(-8))",
- "CD3",
- "2*(0.75^(-7))",
- "CD4",
- "2*(0.75^(-6))",
- "CD5",
- "2*(0.75^(-5))",
- "CD6",
- "2*(0.75^(-4))",
- "CD7",
- "2*(0.75^(-3))",
- "CD8",
- "2*(0.75^(-2))",
- "CD9",
- "2*(0.75^(-1))",
- "D1",
- "2*(0.75^0)",
- "D2",
- "2*(0.75^1)",
- "D3",
- "2*(0.75^2)",
- "D4",
- "2*(0.75^3)"
- };
- TransmissionRatios[]=
- {
- "High",
- 8
- };
- gearBoxMode="auto";
- moveOffGear=1;
- driveString="D";
- neutralString="N";
- reverseString="R";
- transmissionDelay=0;
- };
- /// end of gearbox
- class Wheels {
- class L1 {
- boneName = "wheel_podkoloL1";
- center = "wheel_1_1_axis";
- boundary = "wheel_1_1_bound";
- damping=75;
- steering=0;
- side="left";
- weight=40;
- mass=40;
- width = 0.2;
- MOI = 2;
- latStiffX=25;
- latStiffY=280;
- longitudinalStiffnessPerUnitGravity=100000;
- maxBrakeTorque=1500;
- sprungMass = 1500.0;
- springStrength = 37500;
- springDamperRate = 7500;
- dampingRate=1;
- dampingRateInAir=2140;
- dampingRateDamaged=10;
- dampingRateDestroyed=10000;
- maxDroop=0.5;
- maxCompression=0.1;
- frictionVsSlipGraph[]=
- {
- {0,5},
- {0.5,5},
- {1,5}
- };
- suspForceAppPointOffset="wheel_1_1_axis";
- tireForceAppPointOffset="wheel_1_1_axis";
- };
- class L2: L1 {
- boneName = "wheel_podkoloL2";
- center = "wheel_1_2_axis";
- boundary = "wheel_1_2_bound";
- suspForceAppPointOffset="wheel_1_2_axis";
- tireForceAppPointOffset="wheel_1_2_axis";
- };
- class L3: L1 {
- boneName = "wheel_podkoloL3";
- center = "wheel_1_3_axis";
- boundary = "wheel_1_3_bound";
- suspForceAppPointOffset="wheel_1_3_axis";
- tireForceAppPointOffset="wheel_1_3_axis";
- };
- class L4: L1 {
- boneName = "wheel_podkoloL4";
- center = "wheel_1_4_axis";
- boundary = "wheel_1_4_bound";
- suspForceAppPointOffset="wheel_1_4_axis";
- tireForceAppPointOffset="wheel_1_4_axis";
- };
- class L5: L1 {
- boneName = "wheel_podkoloL5";
- center = "wheel_1_5_axis";
- boundary = "wheel_1_5_bound";
- suspForceAppPointOffset="wheel_1_5_axis";
- tireForceAppPointOffset="wheel_1_5_axis";
- };
- class L6: L1 {
- boneName = "";
- center = "wheel_1_6_axis";
- boundary = "wheel_1_6_bound";
- sprungMass = 1500.0;
- springStrength = 37500;
- springDamperRate = 7500;
- maxDroop = 0;
- maxCompression = 0;
- suspForceAppPointOffset="wheel_1_6_axis";
- tireForceAppPointOffset="wheel_1_6_axis";
- };
- class R1: L1 {
- boneName = "wheel_podkoloP1";
- center = "wheel_2_1_axis";
- boundary = "wheel_2_1_bound";
- suspForceAppPointOffset="wheel_2_1_axis";
- tireForceAppPointOffset="wheel_2_1_axis";
- side = "right";
- };
- class R2: R1 {
- boneName = "wheel_podkoloP2";
- center = "wheel_2_2_axis";
- boundary = "wheel_2_2_bound";
- suspForceAppPointOffset="wheel_2_2_axis";
- tireForceAppPointOffset="wheel_2_2_axis";
- };
- class R3: R1 {
- boneName = "wheel_podkoloP3";
- center = "wheel_2_3_axis";
- boundary = "wheel_2_3_bound";
- suspForceAppPointOffset="wheel_2_3_axis";
- tireForceAppPointOffset="wheel_2_3_axis";
- };
- class R4: R1 {
- boneName = "wheel_podkoloP4";
- center = "wheel_2_4_axis";
- boundary = "wheel_2_4_bound";
- suspForceAppPointOffset="wheel_2_4_axis";
- tireForceAppPointOffset="wheel_2_4_axis";
- };
- class R5: R1 {
- boneName = "wheel_podkoloP5";
- center = "wheel_2_5_axis";
- boundary = "wheel_2_5_bound";
- suspForceAppPointOffset="wheel_2_5_axis";
- tireForceAppPointOffset="wheel_2_5_axis";
- };
- class R6: R1 {
- boneName = "";
- center = "wheel_2_6_axis";
- boundary = "wheel_2_6_bound";
- suspForceAppPointOffset="wheel_2_6_axis";
- tireForceAppPointOffset="wheel_2_6_axis";
- sprungMass = 1500.0;
- springStrength = 37500;
- springDamperRate = 7500;
- maxDroop = 0;
- maxCompression = 0;
- };
- };