Short tutorial on how to make a JBeam - Example JBeam Code included

Discussion in 'Content Creation' started by Jack The Fox, Apr 10, 2025.

  1. Jack The Fox

    Jack The Fox
    Expand Collapse

    Joined:
    Jan 22, 2025
    Messages:
    13
    [Updated post]

    How to make a JBeam

    1. Copy this code:
      Code:
      {
      "Cube":{
          "information":{
              "authors":"You",
              "name":"Cube",
          },
          "slotType":"main",
          
          
           "flexbodies": [
           ["mesh", "[group]:","nonFlexMaterials"],     
           ["Cube", ["Cube"]],   
       
          ],
          
          
          
          
      //--Nodes--
          "nodes":[
              ["id", "posX", "posY", "posZ"],
              {"group":"Cube"},
              ["nl0",1.0,-1.0,-1.0],
              ["nl1",1.0,-1.0,1.0],
              ["nr2",-1.0,-1.0,-1.0],
              ["nr3",-1.0,-1.0,1.0],
              ["nl4",1.0,1.0,-1.0],
              ["nl5",1.0,1.0,1.0],
              ["nr6",-1.0,1.0,-1.0],
              ["nr7",-1.0,1.0,1.0],
              {"group":""},
          ],
      //--Beams--
          "beams":[
              ["id1:", "id2:"],
              ["nr6","nr2"],
              ["nl4","nr6"],
              ["nl5","nl4"],
              ["nr3","nr2"],
              ["nl1","nl0"],
              ["nr7","nr6"],
              ["nl1","nr3"],
              ["nl5","nl1"],
              ["nl0","nr2"],
              ["nr7","nr3"],
              ["nl5","nr7"],
              ["nl4","nl0"],
              ["nl5","nr3"],
              ["nr7","nl1"],
              ["nl0","nr3"],
              ["nl1","nr2"],
              ["nr2","nr7"],
              ["nr3","nr6"],
              ["nr6","nl0"],
              ["nl4","nr2"],
              ["nl4","nl1"],
              ["nl5","nl0"],
              ["nr6","nl5"],
              ["nr7","nl4"],
          ],
      //--Collision Triangles--
          "triangles":[
              ["id1:", "id2:", "id3:"],
              ["nr7","nl1","nl5"],
              ["nl1","nr2","nl0"],
              ["nr3","nr6","nr2"],
              ["nl4","nr2","nr6"],
              ["nl5","nl0","nl4"],
              ["nr7","nl4","nr6"],
              ["nr7","nr3","nl1"],
              ["nl1","nr3","nr2"],
              ["nr3","nr7","nr6"],
              ["nl4","nl0","nr2"],
              ["nl5","nl1","nl0"],
              ["nr7","nl5","nl4"],
          ],
      },
      }
    2. Replace the nodes and beams with your nodes and beams
    3. Replace the nodes positions with your node position which can be seen by viewing your model in blender and clicking on your node. You should see the node position.
    4. The beams should connect your nodes put the name of two nodes and it should connect them
     
    #1 Jack The Fox, Apr 10, 2025
    Last edited: Apr 14, 2025
    • Like Like x 1
  2. Devel6016

    Devel6016
    Expand Collapse

    Joined:
    Feb 3, 2023
    Messages:
    285
    This is nice, could be useful for those like me who had a stroke trying to read the official documentation
    also, i think you should add back the thing about main.materials.json and DAE

    btw, there's an official tutorial vehicle in the docs, but I can see this being useful if people don't want to have to dig through to find it
    it's here: https://documentation.beamng.com/modding/vehicle/tutorials/basic_car_tutorial/

    (this was edited because fixed)
     
    #2 Devel6016, Apr 14, 2025
    Last edited: Apr 14, 2025
  3. StephenRitchie74

    StephenRitchie74
    Expand Collapse

    Joined:
    Oct 3, 2024
    Messages:
    159
    I also don't really see the point of this. Jbeam files arent that hard to make, and like devel said, why not just have the template jbeam for download? You have to edit it yourself anyway, so what's the point of having a tool to generate a generic jbeam when you could just keep the base jbeam and make a copy whenever you needed one?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice