Strange behavior with ground_model parameter "shearStrength"

Discussion in 'Programming' started by angelo234, Dec 5, 2020.

  1. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    540
    I am working on my Road Grip Editor mod and there is this one parameter of the ground_model class that I really don't understand which is called "shearStrength". It seems to randomly change between some very random number (depending on the instance of the game) and zero when I get its value (here's an example for ASPHALT it will output the same for any surfaces):
    Code:
    print(be:getGroundModel("ASPHALT").data["shearStrength"])
    If I clone a surface's ground_model which seems to have some depth to it and try applying it to itself with be:setGroundModel(), it will completely obliterate any vehicle. But if I set "shearStrength" value to zero before setting the ground_model, there is no chaos. This sort of process is what I use to reset the surface's groundmodels.

    The wiki page has no idea what this parameter is but the BeamNG documentation page seems to be confusing flow behavior index for shear strength. :/

    Does anybody have an idea what this parameter does? Thanks in advance! :)
     
  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