Solved Mirror flexbody in jbeam

Discussion in 'Mod Support' started by wlkmanist, Sep 27, 2023.

  1. wlkmanist

    wlkmanist
    Expand Collapse

    Joined:
    Apr 19, 2023
    Messages:
    97
    Can I mirror a flexbody in jbeam without duplicating its mesh? It is flipping normals if I just scale it as -1.
    I want to do some exhausts for V-engine using vanilla meshes. No problem for me just copy mesh and mirror it in blender, but it is better to use vanilla mesh that can be updated by BeamNG devs.
     
  2. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,338
    That could work, to have it like this:
    Code:
    "flexbodies":
    [blah blah blah],
    ["something_exhaust", ["something_exhaust"]],
    ["something_exhaust", ["something_exhaust"], SCALE MODIFIER GOES HERE, X SCALE -1 REST STAY THE SAME],
    ,
    
     
  3. wlkmanist

    wlkmanist
    Expand Collapse

    Joined:
    Apr 19, 2023
    Messages:
    97
    As I said, scale -1 not work, it is totally flipped:

    upload_2023-9-27_9-33-0.png upload_2023-9-27_9-33-38.png

    Used this code in jbeam:
    Code:
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["coupe_exhaust",       ["coupe_exhaust_L"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
             ["coupe_exhaust",       ["coupe_exhaust_R"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":-1, "y":1, "z":1}}],
        ],
    
     
  4. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,338
    Maybe instead of scale -1, try rotating it 180 degrees in some axis? (I think Y)
     
  5. wlkmanist

    wlkmanist
    Expand Collapse

    Joined:
    Apr 19, 2023
    Messages:
    97
    It will have different geometry. We need mirror for exhausts.
     
  6. wlkmanist

    wlkmanist
    Expand Collapse

    Joined:
    Apr 19, 2023
    Messages:
    97
    Thats not possible. 0.30.5.
     
  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