Solved How to make a vehicle use the universal wheels system?

Discussion in 'Mod Support' started by Vinh, Aug 1, 2016.

  1. Vinh

    Vinh
    Expand Collapse
    Banned

    Joined:
    Nov 15, 2015
    Messages:
    2,975
    So i'm working on a mod. And i want it to use those 5 lugs/ 6 lugs wheels. What do i need to add in the vehicle's jbeam?
     
  2. Mr. Avanzato

    Mr. Avanzato
    Expand Collapse

    Joined:
    Apr 16, 2016
    Messages:
    344
    the wheel hubs
     
  3. wrinkle345

    wrinkle345
    Expand Collapse

    Joined:
    Jul 2, 2015
    Messages:
    546
    You can see it in any of the stock vehicle's suspension jbeams (front or rear) either as it's own part, or as part of the suspension itself.

    Code:
    "coupe_hub_F_5": {
        "information":{
            "authors":"BeamNG",
            "name":"5-Lug Front Wheel Hubs",
            "value":100,
        },
        "slotType" : "coupe_hub_F",
        "slots": [
            ["type", "default", "description"]
            ["coupe_brake_F","coupe_brake_F", "Front Brakes"],
            ["wheel_F_5","steelwheel_01a_15x7_F","Front Wheels"{"nodeOffset":{"x":"$trackwidth_F", "y":-1.245, "z":0.35}}],
        ],
    },
    Basically you give the vehicle a slot named "wheel_x_y" where "x" is the position of the wheel (front or rear) and where "y" is the number of lugs the wheel uses (is usually five)

    some examples:
    • wheel_F_5 (5-Lug front wheels)
    • wheel_R_3 (3-Lug rear wheels)
    • wheel_R_6 (6-Lug rear wheels)
    once you have the slot, you need to add a "nodeOffset" to the slot to position the wheel where it should be on the vehicle (since wheels tent to be spawned by default in the center of the vehicle. See the code example above)
     
  4. Vinh

    Vinh
    Expand Collapse
    Banned

    Joined:
    Nov 15, 2015
    Messages:
    2,975
    Thanks a lot :D
     
    • Like Like x 1
  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