1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.35 Bug Reporting thread
    Solutions and more information may already be available.

How do i edit the BeamNG wheels?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, Sep 26, 2015.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Do i take the common.zip file unzip that and put it in the mods section somewhere?
     
  2. DirtGamer301

    DirtGamer301
    Expand Collapse

    Joined:
    Aug 23, 2015
    Messages:
    414
    What do you want to do? Add new wheels to a car?

    If yes, you have to open the tires jbeam file, and change the stuff something like this (lines taken from AR162b's Grand Marshal mod):
    ["rim_name", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8375, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}],
    ["rim_name", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x": 0.8375, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
    ["tire_name", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.825, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}],
    ["tire_name", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x": 0.825, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],

    Change "rim_name" and "tire_name" to whatever the rim/tire name of your wheel is.

    If the rim will now be at the wrong position, not matching up with the tire like this
    screenshot_00194.png
    you can either move the tire out or rim inwards.
    To do so, choose what you want to do, in the shown example the rim will be moved. It works same for the tire, just in the tires placment lines.

    ["rim_name", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8375, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}],
    ["rim_name", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x": 0.8375, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
    ["tire_name", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.825, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}],
    ["tire_name", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x": 0.825, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],

    By making the number higher (positive numbers)/smaller (negative numbers) you'll move the object.
    Make sure you move them by the same amount (well, no, but make the numbers look same, like if you'd ignore that "-"). For example, if you want to move the rim inwards now this would be a possible code:
    ["rim_name", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8325, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}],
    ["rim_name", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x": 0.8325, "y":1.51, "z":0.32}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],

    It'll most likely need some tries until you get a good number for this.
     
  3. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Thanks! I also wanted to know how do I change the size of the wheels? I edited the wheels.dae file and exported it to wheels.dae but the wheel size on the car stays the same
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,695
    You never edit the .DAE file to change the official wheels size.

    Look at above, at the end of each line there is '"scale":{"x":1, "y":1, "z":1}}],' Just change that to change the visual size. To change the JBeam size aswell you have to find the 'wheelradius' value in --wheel.jbeam file of that vehicle.
     
  5. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Thanks for the info! I forgot that the new code allows for changes within the jbeam itself without touching the DAE file.

    So does this also mean that I can change the size and location of any mesh by using that new code? For example the body mesh?

    Dev question: when you add something new like the scale and location code what do you have to do? Edit the core of the game? Update the game definitions? Or both
     
    #5 ThreeDTech21, Sep 26, 2015
    Last edited: Sep 26, 2015
  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