Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Boats: Raise collisionbox top surface to fix boat behaviour
Lowering the top surface to be level with the boat top somehow
causes the boat to fall through world if underwater. Revert to
previous position that is needed for correct behaviour
  • Loading branch information
paramat committed Jun 14, 2016
1 parent 2199be5 commit da0fe31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mods/boats/init.lua
Expand Up @@ -34,7 +34,9 @@ end

local boat = {
physical = true,
collisionbox = {-0.5, -0.35, -0.5, 0.5, 0.15, 0.5},
-- Warning: Do not change the position of the collisionbox top surface,
-- lowering it causes the boat to fall through the world if underwater
collisionbox = {-0.5, -0.35, -0.5, 0.5, 0.3, 0.5},
visual = "mesh",
mesh = "boats_boat.obj",
textures = {"default_wood.png"},
Expand Down

0 comments on commit da0fe31

Please sign in to comment.