Connect animated asset to part of vehicle. AKA... Immortal Driver.

Discussion in 'Content Creation' started by Oneironaut, Jun 20, 2025.

  1. Oneironaut

    Oneironaut
    Expand Collapse

    Joined:
    Jun 20, 2025
    Messages:
    6
    Wow, just recently discovered Beam, and it is huge fun. Too many wasted nights already!

    Ok, my question is probably far off from what anyone might ever need since I have no interest in gaming, only video editing, but let me try to explain...

    I need to move an imported asset such as an animated Mixamo DAE along with a vehicle.
    This does not need to have any physics, just needs to move with whatever it is attached to.
    I have been reading a lot of modding tuts, so a fully defined j-beam prop such as the crashdummy is not what I want.

    Might be easier to explain what I need to do…

    I ONLY plan on using Beam in part of my video work, and in that work I ONLY need to have a shot of a car rolling past with an animated person sitting in the seat. As the car drives by, the person will look at the camera and speak something.

    I already figured out how to make exactly what I want as far as the mesh and texture goes, and can easily place it in the vehicle. Of course, when the vehicle moves, the non j-beam asset stays put.

    There must be some way to have it track with something like a seat node, no? I am also only using the recorder to playback these shots so I would even resort to extracting raw data from the recorded motion file and write a converter to adjust the mesh position if I knew it might work.

    There are so many people here doing amazing things that perhaps this is super easy and I have just failed to see the answer. Any hints would be appreciated.

    ------------------------------------
    --- Post updated ---
    I added an example of what I want to do.
    Sorry for the terrible quality, I am up north for work and did this on a tiny laptop just to show what I mean!
    I want the Mixamo animated mesh to move with the vehicle so it can keep intteracting with the script.


    --- Post updated ---
    Here, dummy is just a static mesh. I can certainly put him in the driver's seat, but the car will drive away and leave him floating. For the crash shot, it is the normal Universal Dummy doing what he should. Shout out to AgentY for the amazing mod!

    Yeah, I know... cheese-o-ramma!

    Anyhow, hope I can figure out how to strap an animated mesh to a seat so it can open up a world of fun for me.

    ------------------------------------

    Ok, going to keep reading until I figure this out. Just found something called LUA, and perhaps it can capture the XYZ coordinates ot the vehicle and then transpose them onto the animated prop? It would take some tweaking to initialy get the prop in the seat, but then should stick there if this idea is possible.

    local vehiclePos = vehicleName:getPosition()

    Now looking for a comprehensive tutorial on all LUA functions.

    ------------------------------------

    Ok, managed to make LUA create simple actions like starting things on fire, etc but have not yet figured out if it can read the XYZ location of the vehicle and then apply it to the loaded DAE mesh. I still think this must be possible in such a rich engine like this.

    Besides my requirement of adding an animated mesh in the drivers seat, I can see many uses for doing this such as; connecting a waving flag to a car, making an animated bird or UFO chase a car, etc. Basically any animated mesh that does no need to deform or have physics.

    Going to keep trying.

    ------------------------------------

    A day later and I have failed to find any LUA examples of tracking a static prop mesh to the XYZ coords of a vehicle.
    LUA seems really powerful, I am suprised there is no decent comprehsive guide!
    Did the makers of BeamNG create LUA?
     
    #1 Oneironaut, Jun 21, 2025
    Last edited: Jun 22, 2025
  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