Prop base location and variables

Discussion in 'Content Creation' started by ossy21, Sep 4, 2022.

  1. ossy21

    ossy21
    Expand Collapse

    Joined:
    Jun 13, 2020
    Messages:
    16
    I use the same engine in multiple different custom vehicles and where I get hung up is on the props for the rotating engine pulleys. Does anyone know if there is a way to use variables for a baseLocation modifier for a prop?

    I have a separate .DAE file with my engines, and common jbeam files for each, all of which are at a 0, 0, 0, x,y,z placement. I then have an engine placement x,y,z variable defined in each of my different vehicles to properly locate the engine in each car, and this worked well for me until I updated my engines with rotations pulley props. If I try to use my engine placement variable anywhere within the props definitions, they just show up at a 0 coordinate in the game. My work-around has been to create a slot within the engine to select which vehicle's pulleys to use, and to create multiple sets of pulleys in the .Dae file placed correctly for each different vehicle, but I hate the duplication.

    Anybody know of a way to use a variable to adjust prop placement?
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,425
    Using BaseTranslation resets the position of the props so you have to add the default position in Blender to your position and it will work hopefully
     
  3. ossy21

    ossy21
    Expand Collapse

    Joined:
    Jun 13, 2020
    Messages:
    16
    Yep, that was it. I had to do prop location in blender minus the reference node location to get the pulleys placed correctly. I had assumed that I would have to offset the props with the engine placement variable, but nope. Thanks.
     
  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