Solved nodeOffset not moving props

Discussion in 'Mod Support' started by jimmyking, Apr 7, 2025.

  1. jimmyking

    jimmyking
    Expand Collapse

    Joined:
    Mar 9, 2020
    Messages:
    90
    So, I'm trying the new nodeRotate, and it works! something I have been wanting for a long time, but with nodeOffset, it doesn't move the props:

    upload_2025-4-7_13-10-5.png

    upload_2025-4-7_13-10-20.png

    upload_2025-4-7_13-10-55.png

    Do I need something for the props? They rotate with nodeRotate but don't move with nodeOffset
     
  2. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    585
    You need to define the base position of the prop using baseTranslation such as with:
    Code:
    ["radiatorFanSpin"  , "bluebuck_coolingfan_i6", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1, {"baseTranslation": {"x":0, "y":0, "z":0}}],
    
    at the end of the prop definition so that you can use nodeOffset. Without it, the prop is placed in the dae file/Blender coordinates. Its a backwards compatibility thing :/
     
  3. jimmyking

    jimmyking
    Expand Collapse

    Joined:
    Mar 9, 2020
    Messages:
    90
    Well, I tried that line you gave, and it does move, but it's not at all in the correct place:

    upload_2025-4-7_21-51-16.png

    Or are you saying I need to put in the coordinates to the baseTranslation?
     
  4. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    585
    Yeah sry what I meant is you need to define a baseTranslation or baseTranslationGlobal. The (0,0,0) I gave wasn't meant to be the correct coordinates.
     
  5. jimmyking

    jimmyking
    Expand Collapse

    Joined:
    Mar 9, 2020
    Messages:
    90
    So, in the end, nodeOffset can't affect props? That's a shame. Thanks for your help anyway
     
  6. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    585
    It can affect it, its just you need to define a baseTranslation or baseTranslationGlobal though.
     
  7. jimmyking

    jimmyking
    Expand Collapse

    Joined:
    Mar 9, 2020
    Messages:
    90
    It worked! I had to use baseTranslationGlobal, but you were right it had to be defined

    upload_2025-4-8_1-43-49.png

    upload_2025-4-8_1-43-44.png

    Thanks for the help!
     
    • 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