Skip to content

Commit da0fe31

Browse files
committedJun 14, 2016
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
1 parent 2199be5 commit da0fe31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎mods/boats/init.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ end
3434

3535
local boat = {
3636
physical = true,
37-
collisionbox = {-0.5, -0.35, -0.5, 0.5, 0.15, 0.5},
37+
-- Warning: Do not change the position of the collisionbox top surface,
38+
-- lowering it causes the boat to fall through the world if underwater
39+
collisionbox = {-0.5, -0.35, -0.5, 0.5, 0.3, 0.5},
3840
visual = "mesh",
3941
mesh = "boats_boat.obj",
4042
textures = {"default_wood.png"},

0 commit comments

Comments
 (0)
Please sign in to comment.