mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 08:39:34 +01:00
Address review comment and adjust multiplier
This commit is contained in:
parent
3b63b1eec3
commit
aef68d34fd
1 changed files with 2 additions and 2 deletions
|
@ -567,8 +567,8 @@ function submod.do_detached_movement(self, dtime)
|
|||
|
||||
local away = vector_away_from_players(self, staticdata)
|
||||
if away then
|
||||
local v = self.object:get_velocity() * 0.25
|
||||
self.object:set_velocity(v - away)
|
||||
local v = self.object:get_velocity()
|
||||
self.object:set_velocity((v - away)*0.65)
|
||||
|
||||
-- Boost the minecart vertically a bit to get over the edge of rails and things like carpets
|
||||
local boost = vector.offset(vector.multiply(vector.normalize(away), 0.1), 0, 0.07, 0) -- 1/16th + 0.0075
|
||||
|
|
Loading…
Reference in a new issue