Creating building, Interior Mask Trigger/Collision

Post Reply
Josh-A-Roo
Posts: 5
Joined: Wed Aug 21, 2019 4:15 pm

Wed Aug 21, 2019 11:21 pm

Image

mod : https://drive.google.com/open?id=1100R3 ... c6AljIv26m

Hey so I think I everything set right, I'm going to look over the xml for my base collision, however, my problem is:
I cannot enter the building. If I get close enough it triggers the interior. What you can't see in the picture is he's in the door way, right on the cusp of the inside.

I can reset squad position onto the roof, and walk around correctly, but not go down the stairs.

I'm fairly certain it's the interior mask collider being a collision, and not a trigger. If I remove everything but the base, stairs, and mask I can walk the outline, where the walls would be. I took the storm House trigger xml and changed the names and <NxBoxShapeDesc dimensions to make it.

Josh-A-Roo
Posts: 5
Joined: Wed Aug 21, 2019 4:15 pm

Thu Aug 22, 2019 7:53 pm

I think I've worked out the problem, there was actually two. I haven't fully tested it yet, but I'll report back.

1 Tested - works - Maybe obvious, but if not it's very important. The xml collider makes a .bin file on first run. If you change the xml file it will not make a new .bin, and it doesn't get overwritten. Therefore, one needs to delete the (example)building_exterior_stairs_collider.bin in the mod folder, and the game will make a new .bin file of the (example)building_exterior_stairs_collider.xml

2 -Untested theory - Exporting a mesh with a 'hole' in it for a door won't work, gets treated as a solid shape. First I will try making my exterior collider in blender with 3 big cubes for 3 walls, and 3 cubes for the door wall. If this fails I will try the same, except writing it directly into xml.

This should work. I'm going to get it together, and then work on interior stairs, and additional levels.

Josh-A-Roo
Posts: 5
Joined: Wed Aug 21, 2019 4:15 pm

Sat Aug 24, 2019 1:34 am

I got it. There's still some things to work out, but here is my wip so far.

https://youtu.be/CA2c8EjVMCE

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests