Hey all!
So I’m utilizing the plugin “Traffic Ai System” to generate and animate the vehicles on roadways. I’ve been able to add my own custom vehicles to it via the chaos vehicle system. I have all of that working great, no problem.
The issue I’m running into is I need to add in a Semi-Truck pulling a trailer and I’m having difficulty getting the Cab & Trailer rigged together properly to spawn through the plugin.
I have both the truck cab & trailer each rigged separately via the Chaos Vehicle system. The plugin utilizes an array where you add in each vehicle BP and then it spawns those on the roadways. So I have the cab spawning and working just fine as you can see the image below.
So I scratched my head trying to figure out how to get the bloody trailer to spawn with it and be pulled along as expected. So in the next image below you’ll see where I added the trailer into the cab’s chaos vehicle BP as a child actor. Then I attached it to a Physics Constraint. Only to get the results in the next image below.
You see, I’m getting them to spawn but the trailer just kicks to one side and doesn’t go along with the cab as expected.
One thing you’ll notice in the Physics constraint’s details panel, I don’t have anything typed in the “Component Name 1”. This is because I don’t know what to type in there to target the Cab. We’re inside of the cab’s BP, which to note, is a Child BP class of the plugin’s (Traffic Ai System) parent BP used to set up all of it’s vehicles.
I also tried creating a fresh new BP and adding both the cab and trailer as both Child Actors then using the physics constraint where I was able to target both no problem. But when I run it, the truck and trailer both spawn at bad angles and don’t move like they’re supposed to.
I feel like i’m RIGHT there in figuring this out but i’m just missing something. I’m still learning BPs in general so I don’t know what all my options are to figure this out. So any feedback or even other solutions to the problem I would GREATLY appreciate it!