summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorHume2 <teratux.mail@gmail.com>2018-08-28 22:20:59 +0200
committerHume2 <teratux.mail@gmail.com>2018-08-28 22:20:59 +0200
commit30f7370fd4b8e3514d395af6ac7870c4af9ad0ce (patch)
treefdb3e86dded5c49bfea4874c2e096c6489502ef2 /init.lua
parent13ab931e68b2c7fa9abb2ec4a6d60ac60f45dd92 (diff)
Make the bike 80% size
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 11f9f97..d871828 100644
--- a/init.lua
+++ b/init.lua
@@ -36,7 +36,7 @@ local bike = {
physical = true,
-- Warning: Do not change the position of the collisionbox top surface,
-- lowering it causes the bike to fall through the world if underwater
- collisionbox = {-0.5, -0.5, -0.5, 0.5, 1.0, 0.5},
+ collisionbox = {-0.4, -0.4, -0.4, 0.4, 0.8, 0.4},
visual = "mesh",
mesh = "bike_bike.obj",
textures = {"bike_bike.png"},
@@ -84,7 +84,7 @@ function bike.on_rightclick(self, clicker)
end
self.driver = clicker
clicker:set_attach(self.object, "",
- {x = 0, y = 3, z = -3}, {x = 0, y = 0, z = 0})
+ {x = 0, y = 1.3, z = -2.3}, {x = 0, y = 0, z = 0})
default.player_attached[name] = true
--[[minetest.after(0.2, function()
default.player_set_animation(clicker, "sit" , 30)