UPDATE
This commit is contained in:
14
koptilnya/engine_remastered/wheel/friction.txt
Normal file
14
koptilnya/engine_remastered/wheel/friction.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
local Friction = class('Friction')
|
||||
|
||||
function Friction:initialize(config)
|
||||
config = config or {}
|
||||
|
||||
self.slipCoefficient = config.SlipCoefficient or 0.8
|
||||
self.forceCoefficient = config.ForceCoefficient or 1.2
|
||||
|
||||
self.force = 0
|
||||
self.slip = 0
|
||||
self.speed = 0
|
||||
end
|
||||
|
||||
return Friction
|
||||
Reference in New Issue
Block a user