This commit is contained in:
Никита Круглицкий
2025-06-14 14:21:56 +06:00
parent 84f591db59
commit 0850d7798b
13 changed files with 408 additions and 170 deletions

View File

@@ -8,11 +8,10 @@ local Differential = require('/koptilnya/engine_remastered/powertrain/differenti
-- Michelin Pilot Sport 4S (High-Performance Road Tire)
local WheelConfig = {
DEBUG = true,
DEBUG = false,
BrakePower = 1200,
CustomWheel = {
Mass = 30,
LateralFrictionPreset = {
B = 12.0,
C = 1.3,
@@ -49,16 +48,24 @@ local FrontWheelsConfig = table.merge(table.copy(WheelConfig), {
})
local RearWheelsConfig = table.merge(table.copy(WheelConfig), {
BrakePower = 600,
BrakePower = 0,
HandbrakePower = 2200,
CustomWheel = {
CamberAngle = -2,
LongitudinalFrictionPreset = nil,
LateralFrictionPreset = nil,
-- LongitudinalFrictionPreset = {
-- B = 0.1,
-- C = 1,
-- D = 0.9,
-- E = 0.9,
-- },
-- LateralFrictionPreset = {
-- B = 0.1,
-- C = 1,
-- D = 0.9,
-- E = 0.9,
-- },
},
})
@@ -201,7 +208,7 @@ Vehicle:new({
},
{
Name = 'AxleFront',
-- Input = 'Axle',
Input = 'Axle',
Type = POWERTRAIN_COMPONENT.Differential,
Config = {
Type = Differential.TYPES.Open,
@@ -230,7 +237,7 @@ Vehicle:new({
},
{
Name = 'AxleBack',
Input = 'Gearbox',
Input = 'Axle',
Type = POWERTRAIN_COMPONENT.Differential,
Config = {
Type = Differential.TYPES.Open,
@@ -239,17 +246,17 @@ Vehicle:new({
BiasAB = 0.5,
CoastRamp = 1,
PowerRamp = 1,
Stiffness = 0.9,
Stiffness = 1,
SlipTorque = 1000,
ToeAngle = 0.5,
},
},
{
Name = 'Axle',
-- Input = 'Gearbox',
Input = 'Gearbox',
Type = POWERTRAIN_COMPONENT.Differential,
Config = {
Type = Differential.TYPES.Open,
Type = Differential.TYPES.Locking,
FinalDrive = 1,
Inertia = 0.01,
BiasAB = 0.5,