Boats: Raise collisionbox top surface to fix boat behaviour
authorparamat <mat.gregory@virginmedia.com>
Tue, 14 Jun 2016 20:16:22 +0000 (21:16 +0100)
committerparamat <mat.gregory@virginmedia.com>
Tue, 14 Jun 2016 22:29:21 +0000 (23:29 +0100)
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

mods/boats/init.lua

index f481b2a3a1107d892773d7f99de8aba817d7c9ef..0097a57a46e0f8fdf7e961cc3e645e129ab3a7d4 100644 (file)
@@ -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"},