Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Doors don't work as solid objects when they are outside of hulls

Open BillCombs opened this issue 7 years ago • 2 comments

I wanted to make something similar to garage doors for a shuttle, so small creatures like crawlers wouldn't get inside and get stuck between the sub and the shuttle. But it appears that creatures and shuttles don't have collision with doors(and probably hatches too) when they are outside of hulls. wilson-pc-2018-oct-18-002 wilson-pc-2018-oct-18-003

BillCombs avatar Oct 18 '18 05:10 BillCombs

Digging this up from the icebox because we need it for https://github.com/Regalis11/Barotrauma-development/tree/feature/endgame-prototyping

Regalis11 avatar Dec 03 '21 11:12 Regalis11

Tested against WIP branch commit https://github.com/Regalis11/Barotrauma-development/commit/baf018697b7ccb429b18b29b5f63c2f7d0be0603

They appear to act as solid objects fine now (for both other submarines/shuttles/ruins etc), but the code for not closing on a submarine doesn't appear to function correctly. it still closed on a remora drone I was using with the door as part of an edited remora sticking out as a sort of box. something seems odd with the logic to determine if the rects overlap for large doors and submarines.

NilanthAnimosus avatar Aug 02 '22 13:08 NilanthAnimosus

Fixed in https://github.com/Regalis11/Barotrauma-development/commit/8770d887fcd4a7987f3dd5e66198290d9bf116fb

Regalis11 avatar Aug 17 '22 06:08 Regalis11

Tested, no issues. Closing.

Rokvach avatar Sep 24 '22 09:09 Rokvach