Solved Buoyancy problems

Discussion in 'Mod Support' started by Ytrewq, Apr 29, 2017.

  1. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,270
    I've created pontoons for my amphibious car mod, but the pontoons implode as soon as they come into contact with water. I've read the wiki page about buoyancy and don't know what I'm doing wrong.
     

    Attached Files:

  2. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,270
    Help
     
  3. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    It's probably because some of the triangles are inverted. Look at the triangle structure with ctrl + T (and ctrl + numpad minus to hide the mesh). Flip the order of the nodes on the purple triangles.
     
  4. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,270
    Some triangles are green and some are purple. Which ones are inverted- purple ones?
     
  5. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    Yes, green sides should face outward.
     
  6. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,270
    I've fixed the triangles. The reaction to water is different: it floats like it should for a moment, then the pontoons start getting bigger and in a couple of seconds I get this: pessimaproblem.png
     

    Attached Files:

  7. nastygdigger

    nastygdigger
    Expand Collapse

    Joined:
    Mar 19, 2015
    Messages:
    627
    Isn't all the bouyancy pods and triangles scripts tho?
     
  8. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,270
    Now that I've changed nodeweight to 10, it is now floating nicely on some maps, but on other maps, it still explodes in water. I know that various density of water is to blame, but how to make it work everywhere?
    Examples:
    Stable:
    ECU- sea
    Cliff
    Utah
    Unstable:
    ECU- stream
    Bonniethebunnys one hour challenge map
    Baja track
     

    Attached Files:

  9. Kirahl

    Kirahl
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    162
    I've managed to get them stable and floating in ECU sea, but they don't float nor explode in the ECU stream oddly enough. Fixing the coltris helped the stability massively, even without changing the node weight.

    Edit: The stream in ECU doesn't seem to have buoyancy, just high drag.

    Edit2: Works on the other 2 maps without issue. Even when diving into the water from the top of Bonniethebunny's map it just floats without exploding :p Backwards coltris were definitely the issue it seems.
     
    #8 Kirahl, May 10, 2017
    Last edited: May 10, 2017
  10. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,270
    What do you mean by saying "backwards coltris". Inverted? There were no inverted coltris.
    P.S. You didn't need to get it stable in ECU sea as it was already stable there.
     
  11. Kirahl

    Kirahl
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    162
    Huh, sorry, I was going off the original, I fixed the inverted coltris on it and it made it stable everywhere. However, yours is unstable, which I don't understand considering you fixed the coltris.

    Here's the one I fixed, it's seems completely stable even when hitting water at high(ish) speeds on every map I've tested.
     

    Attached Files:

    #10 Kirahl, May 11, 2017
    Last edited: May 11, 2017
  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