How to make detachable parts?

Discussion in 'Content Creation' started by crashmaster, Nov 22, 2015.

  1. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Im working on a car with multiple parts and i made the jbeam by scratch, as of right now i only tried to attach the rear bumper, but how? is it something like this?
    {"breakGroup":""},
    //fender support beams
    {"beamType":"|SUPPORT","beamLongBound":4},
    {"beamSpring":851000,"beamDamp":250},
    {"beamLimitSpring":851000,"beamLimitDamp":250},
    {"beamDeform":18000,"beamStrength":200000},

    Do i need to attach it a bit everywhere?
    Right now im using the super car, its customized a lot, but i cant get the pieces attached.
    Iv looked through the wiki, im not sure how it works.

    Ive got another front bumper and 2 side panels to make as well. But im not there yet.
    Ive worked a lot lately with jbeam and i made a few private cars so im pretty familiar with everything now.
     
  2. Zappymouse

    Zappymouse
    Expand Collapse

    Joined:
    Jun 18, 2013
    Messages:
    1,060
    breakGroups tell a specified set of beams to break simultaneously when one of them in the group breaks.

    You use them just like normal groups, so assign a set of beams by setting the breakGroup above them with its own unique name, then clear the breakGroup for everything after with {"breakGroup":""},.
     
  3. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    So if all my beams are in the same group it wont work?
     
  4. Zappymouse

    Zappymouse
    Expand Collapse

    Joined:
    Jun 18, 2013
    Messages:
    1,060
    If every beam in your jbeam is in the same breakGroup, then every beam your vehicle is made of will break when one beam breaks.
     
  5. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Hmmm... interesting. might that be why all of them breaks all at once?
     
  6. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Unless I misunderstand: Zappymouse is saying is that breakGroups are another type of group. It looks to me as if a beam cannot be in two groups simultaneously, so you'd either have a beam in a regular group or a breakGroup.

    If it's in a breakGroup then it will behave in the way Zappymouse described.

    Disclaimer: I have a poor understanding of jbeam so far.
     
  7. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    The problem was with this.

    {"breakGroup":""},
    //fender support beams
    {"beamType":"|SUPPORT","beamLongBound":4}, (NOT NEEDED)
    {"beamSpring":851000,"beamDamp":250},
    {"beamLimitSpring":851000,"beamLimitDamp":250}, (NOT NEEDED)
    {"beamDeform":18000,"beamStrength":200000}

    I added not needed at the end because when i removed them it worked perfectly. You can have multiple breakgroups in a file
     
  8. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    I'm still having some trouble with the syntax involved. That doesn't seem to be an actual breakgroup - it doesn't have a unique name.
     
  9. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Im not the best, but i think i could help you. can you send me your file or something? you can pm me if you would like it that way.
     
  10. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    I was asking a question about your breakgroup. I'm currently not working on any jbeam or mesh projects. I'm sticking to the relatively easy stuff for now - maps, scenarios, lua, etc.
     
  11. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Oh, i though you had problems with something of your own, sorry.
    You dont need a name for breakgroups like this. from what i know this is just so it has detachable parts, when you add a name, it just means you can add a part with that group in your flexbodies and so that part will be "glued" with that group.
     
  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