mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-12-24 09:50:19 +01:00
Revert cart gravity from 2.5 to 2
Allows 50% powerrail-rail mix to transport the cart in an 45° angle
This commit is contained in:
parent
cba969903a
commit
8b4487c2b8
@ -238,7 +238,6 @@ function cart_entity:on_step(dtime)
|
||||
pos = vector.round(pos)
|
||||
update.pos = true
|
||||
update.vel = true
|
||||
mod_found = true
|
||||
end
|
||||
if acc == nil then
|
||||
-- Meta speed modifier
|
||||
@ -266,11 +265,7 @@ function cart_entity:on_step(dtime)
|
||||
end
|
||||
|
||||
-- Slow down or speed up, depending on Y direction
|
||||
if acc then
|
||||
acc = acc + dir.y * -2.5
|
||||
else
|
||||
acc = 0
|
||||
end
|
||||
acc = acc + dir.y * -2
|
||||
|
||||
if self.old_dir.y ~= 1 and not self.punched then
|
||||
-- Stop the cart swing between two rail parts (handbrake)
|
||||
|
Loading…
Reference in New Issue
Block a user