I made a custom collision for a static object I am working on for a mod. Can't claim any credit for this, I'm just modding someone else's work into something else again, kinda a thing of mine (modding mods), and since it was SOOO hard to track down this info,l I thought I'd share what works for me. Here's how: First, I watched about 13 times, and ANY credit goes to MagicTaric Then I modified his technique as follows:
I did NOT generate a convexhull for my object, stop right there in the video. Instead I cloned it, linked the clone as child of the original, reset the xForms of both. I selected the child object I then clicked the "add rigid body" button under Havok Content Tools (way up at the top-right menu bar if you missed it, I did for a bit) This added the modifiers shape and rigidbody. I set shape to mesh, and under rigid body Set the following check boxes, left the values default : Linear Dampening, angular dampening, linear velocity and angular velocity. Now goto utilities, press more, and select CollisionGroup. Once here, I changed the properties to: MetalHollow (my object is made of steel pipes), and the type to Static. Click APPLY. DOn't Forget to click APPLY. Applied a Material as instructed in the reference vid, and export. At this point, if you open you newly-made nif in Nifskope, first off it'll error out about arrays being bad and all kinda stuff, so do NOT save, just for checking, but you should see your object, with proper textures (I selected a vanilla bgsm in 3DS and it worked fine.) highlighted with a green glow. This is VERY promising, ignore the garbage bhkCompressed stuff, atm it's all broken. Run the resulting .nif (from 3DS, not nifskope) thru Elric, with the reference video's settings (default.) The result from Elric is a working nif with custom collision ingame.
OOMPA. Now I can beat my head off MY OWN WALLS!!! <eidt:> to add that I left mass 0, as my obj IS a form of wall (as buddy explains in the video)
You MUST HAVE 3ds2013 x64 installed, as well as the included-with-FO4 3dsmax plugins installer (C:\Games\Fallout 4\Tools\NIF_Exporter\BGS_Fallout4Exporter_-_126.96.36.199.exe. you CAN install 3ds to a non-default directory, just run the plugin installer, and grab the stuff it places at C:\Program Files\Autodesk\* and copy to YOUR \Autodesk folder.) I have added ALL the plugins under \BSG to my external paths (no idea if it matters or not, something to do with shaders led me there, i think. IDK for sure where that advice came from, been trying many things lately to get working custom collision for my mesh.) Hope this helps y'all out, I was stuck for almost a week on this one.
One final note that my object came out in-game (and displayed in 3DS) with a very messed-up transform and rotation, half-in the ground twisted away from center when created. There was a point when I had "orthagonal view:realistic" open in my main viewport in 3DSMax and the "ground" mesh square was invisibly far away on a crazy axis ( 285-ish degrees right from the "North view" by about 20-ish +Z (10:30-11 o'clock high in "flight combat" terms.) Could NOT figure out how to reset it, I finally just changed the secondary NiNode's transform in Nifskope to correct it. Primary NiNode changes looked good in Nifskope but still messed around in-game.
Edited by JesterDoobie, 30 June 2016 - 07:06 AM.