Implementing better steering
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
-- @include ./wire_component.txt
|
||||
-- @include /koptilnya/libs/wire_component.txt
|
||||
-- @include ./enums/gearbox.txt
|
||||
-- @include /koptilnya/libs/constants.txt
|
||||
require('/koptilnya/libs/constants.txt')
|
||||
require('./wire_component.txt')
|
||||
require('/koptilnya/libs/wire_component.txt')
|
||||
local gearboxTypes = require('./enums/gearbox.txt')
|
||||
|
||||
Clutch = class('Clutch', WireComponent)
|
||||
|
||||
@@ -24,7 +24,7 @@ Vehicle:new({
|
||||
}
|
||||
},
|
||||
Clutch = {Stiffness = 20, Damping = 0.7, MaxTorque = 400},
|
||||
Gearbox = {Type = 'MANUAL', ShiftDuration = 0.2, ShiftSmoothness = 0.3, Ratios = {3.626, 2.200, 1.541, 1.213, 1.000, 0.767}, Reverse = 3.437},
|
||||
Gearbox = {Type = 'MANUAL', ShiftDuration = 0.2, ShiftSmoothness = 0.3, Ratios = {3.626, 2.200, 1.541, 1.213, 1.000, 0.767}, Reverse = 3.437},
|
||||
Axles = {{Power = 0.96, Coast = 0.96, Preload = 10, UsePowerBias = 10, ViscousCoeff = 0.96, Axle = Vector(1, 0, 0), DistributionCoeff = 1, FinalDrive = 3.392}},
|
||||
Systems = {{Type = 'LAUNCH', Limit = 3500}, {Type = 'TRACTION', Limit = 1.5}}
|
||||
})
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
-- @server
|
||||
-- @include /koptilnya/libs/constants.txt
|
||||
-- @include ./wire_component.txt
|
||||
-- @include /koptilnya/libs/wire_component.txt
|
||||
require('/koptilnya/libs/constants.txt')
|
||||
require('./wire_component.txt')
|
||||
require('/koptilnya/libs/wire_component.txt')
|
||||
|
||||
Differential = class('Differential', WireComponent)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- @include ./wire_component.txt
|
||||
-- @include /koptilnya/libs/wire_component.txt
|
||||
-- @include /koptilnya/libs/constants.txt
|
||||
require('./wire_component.txt')
|
||||
require('/koptilnya/libs/wire_component.txt')
|
||||
require('/koptilnya/libs/constants.txt')
|
||||
|
||||
Engine = class('Engine', WireComponent)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- @include ../wire_component.txt
|
||||
require('../wire_component.txt')
|
||||
-- @include /koptilnya/libs/wire_component.txt
|
||||
require('/koptilnya/libs/wire_component.txt')
|
||||
|
||||
Gearbox = class('Gearbox', WireComponent)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
-- @server
|
||||
-- @include /koptilnya/libs/constants.txt
|
||||
-- @include ./wire_component.txt
|
||||
-- @include /koptilnya/libs/wire_component.txt
|
||||
require('/koptilnya/libs/constants.txt')
|
||||
require('./wire_component.txt')
|
||||
require('/koptilnya/libs/wire_component.txt')
|
||||
|
||||
Differential = class('Differential', WireComponent)
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
WireComponent = class('WireComponent')
|
||||
|
||||
function WireComponent:getInputs()
|
||||
return {}
|
||||
end
|
||||
|
||||
function WireComponent:getOutputs()
|
||||
return {}
|
||||
end
|
||||
|
||||
function WireComponent:updateOutputs()
|
||||
end
|
||||
Reference in New Issue
Block a user