From aee5c31362ca329ab71998d8c43588dba5113e04 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 15 Jan 2016 22:07:31 +0000 Subject: Increase push and maximum velocity --- railcart/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railcart/init.lua') diff --git a/railcart/init.lua b/railcart/init.lua index 417b429..c18bc82 100644 --- a/railcart/init.lua +++ b/railcart/init.lua @@ -79,10 +79,11 @@ minetest.register_entity("railcart:cart_entity", { if self.cart and direction then local pos = vector.round(self.object:getpos()) local dir = vector.round(vector.normalize(direction)) + local speed = railcart:velocity_to_speed(self.cart.vel) self.timer = 0 self.cart.target = nil self.cart.prev = pos - self.cart.vel = vector.multiply(dir, 4) + self.cart.vel = vector.multiply(dir, RAILCART_SPEED_PUSH) self.cart.accel = railtrack:get_acceleration(pos) self.object:setvelocity(self.cart.vel) end -- cgit v1.2.3