Issues with triangles

Discussion in 'Programming' started by CaptainZoll, Jan 29, 2017.

  1. CaptainZoll

    CaptainZoll
    Expand Collapse

    Joined:
    Nov 10, 2016
    Messages:
    2,991
    I have been working on a mod recently (attempting to attach steel barrels to a pigeon to make it float), and after attempting to port the triangles, I have found that, while other vehicles collide with both barrels, only the barrel on the right floats, (meaning the barrel on the left is somehow ignoring or canceling out the pressuregroup and/or PSI values) . If anyone can find any errors, it would be appreciated. below is the aforementioned triangles section:
    "triangles": [
    ["id1:","id2:","id3:"],
    {"groundModel":"metal"},
    {"group":"pigeon"},
    {"pressureGroup":"pigeon"},
    {"pressurePSI":0},
    //**RIGHT**
    ["3ar","3br","3cr"],
    ["3ar","3cr","3fr"],
    ["3cr","3er","3fr"],
    ["3cr","3dr","3er"],

    ["1ar","1cr","1br"],
    ["1ar","1fr","1cr"],
    ["1cr","1fr","1er"],
    ["1cr","1er","1dr"],

    ["1ar","2br","2ar"],
    ["1ar","1br","2br"],
    ["1br","2cr","2br"],
    ["1br","1cr","2cr"],
    ["1cr","2dr","2cr"],
    ["1cr","1dr","2dr"],
    ["1dr","2er","2dr"],
    ["1dr","1er","2er"],
    ["1er","2fr","2er"],
    ["1er","1fr","2fr"],
    ["1fr","2ar","2fr"],
    ["1fr","1ar","2ar"],

    ["2ar","3br","3ar"],
    ["2ar","2br","3br"],
    ["2br","3cr","3br"],
    ["2br","2cr","3cr"],
    ["2cr","3dr","3cr"],
    ["2cr","2dr","3dr"],
    ["2dr","3er","3dr"],
    ["2dr","2er","3er"],
    ["2er","3fr","3er"],
    ["2er","2fr","3fr"],
    ["2fr","3ar","3fr"],
    ["2fr","2ar","3ar"],

    //LEFT
    ["3al","3bl","3cl"],
    ["3al","3cl","3fl"],
    ["3cl","3el","3fl"],
    ["3cl","3dl","3el"],

    ["1al","1cl","1bl"],
    ["1al","1fl","1cl"],
    ["1cl","1fl","1el"],
    ["1cl","1el","1dl"],

    ["1al","2bl","2al"],
    ["1al","1bl","2bl"],
    ["1bl","2cl","2bl"],
    ["1bl","1cl","2cl"],
    ["1cl","2dl","2cl"],
    ["1cl","1dl","2dl"],
    ["1dl","2el","2dl"],
    ["1dl","1el","2el"],
    ["1el","2fl","2el"],
    ["1el","1fl","2fl"],
    ["1fl","2al","2fl"],
    ["1fl","1al","2al"],

    ["2al","3bl","3al"],
    ["2al","2bl","3bl"],
    ["2bl","3cl","3bl"],
    ["2bl","2cl","3cl"],
    ["2cl","3dl","3cl"],
    ["2cl","2dl","3dl"],
    ["2dl","3el","3dl"],
    ["2dl","2el","3el"],
    ["2el","3fl","3el"],
    ["2el","2fl","3fl"],
    ["2fl","3al","3fl"],
    ["2fl","2al","3al"],

    {"group":""},
    {"pressureGroup":""},
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,686
    What I can think of:

    - PressureGroup is not defined correctly
    - The left-barrel is not entirely closed shape (ie. it has a hole)
     
  3. CaptainZoll

    CaptainZoll
    Expand Collapse

    Joined:
    Nov 10, 2016
    Messages:
    2,991
    after opening it in BNEditor (is there still a triangle debug in the game?) I quickly realised. the barrel is inside out. Talk about a DERP
     

    Attached Files:

    • Screenshot244.png
  4. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    that is easy to fix :)
    and yes, there is a triangle debug ingame, ctrl+T
     
  5. Linux Doggo

    Linux Doggo
    Expand Collapse

    Joined:
    Jan 3, 2016
    Messages:
    193
    Am I allowed to make my own version in CryEngine 5 for private use? And then I mean my own CryEngine version of BeamNG.drive
     
    • Agree Agree x 1
  6. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    uh, no?
     
  7. Linux Doggo

    Linux Doggo
    Expand Collapse

    Joined:
    Jan 3, 2016
    Messages:
    193
    Ok then I'll stop asking anything about CE
     
  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