Page 1 of 1

How to add and export collision properly?

Posted: Thu May 07, 2020 11:15 am
by Bashaar
Hello Fellow Beeps!

I would like to add some new functional/residential buildings to the game, but I have problems with adding collision. I've dug through heaps of tutorials, websites, reddits and even contacted some modders, but to no avail. At this point I am able to assign the collision in Blender, but when I export the file and load it in FCS, the collision doesn't work and I can go through the abomiations I've created.

My procedure of adding collision:

I choose a mesh and under Physics Properties I tick Collision, then Rigid Body. As a next step I set type to Active, and then I set collision shape to Mesh and the source to Base. Having set these I export the collision setting objects to Selection and transformation to Parent.

What am I doing wrong? Can you help me?

Re: How to add and export collision properly?

Posted: Fri May 08, 2020 6:39 pm
by Cattrina
I have not been able to export collisions either. I think the newer version of Blender xml is not compatible with Kenshi. Sorry I am not much help.

Re: How to add and export collision properly?

Posted: Mon May 11, 2020 3:54 pm
by someone
Not sure what could be going wrong, but the Blender 2.8 collision export is mostly working. Convex hulls are the only thing currently broken.

I suggest using the collision viewer program from the blender thread to check the files. If you drag both the collision xml file and mesh file for your object at once onto that program window it will display both. Useful for checking if alignment and scale is correct.

Also note that when using the in game editor to place buildings, the navmesh is not updated until that area is reloaded or it is rebuilt manually.

Re: How to add and export collision properly?

Posted: Sun May 17, 2020 2:17 pm
by Bashaar
Hey!
Thank you form your help, Someone! I've figured out that in addition to lack of navmesh update, I messed the normals in my structure, so the game couldn't get it right. :lol:

Peace!