77
77
if minVel[dir] and vel[dir] < minVel[dir] then vel[dir] = minVel[dir] end
78
78
if maxVel[dir] and vel[dir] > maxVel[dir] then vel[dir] = maxVel[dir] end
80
86
if vel[dir] ~= 0 then self[dir] = self[dir] + vel[dir] * elapsed end
82
88
if self[dir] < 0 then self[dir] = 0 end