Implementing starfall version of engine
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
Engine = class("Engine")
|
||||
|
||||
function Engine:initialize(options)
|
||||
options = options or {}
|
||||
|
||||
self.idleRPM = options.IdleRPM or 800
|
||||
self.maxRPM = options.MaxRPM or 8000
|
||||
|
||||
self.flywheelMass = options.FlywheelMass or 4
|
||||
self.flywheelRadius = options.FlywheelRadius or 0.3
|
||||
|
||||
self.startFriction = options.StartFriction or -30
|
||||
self.frictionCoeff = options.FrictionCoeff or 0.02
|
||||
|
||||
self.limiterDuration = options.LimiterDuration or 0.05
|
||||
|
||||
self.torqueMap = options.TorqueMap or {}
|
||||
|
||||
self.throttle = 0
|
||||
end
|
||||
Reference in New Issue
Block a user