検索 - User list
Full Version: Constraint question
Root » Rigging » Constraint question
Lightgodlike
I need some help. I created a truck rig using the Carrig node, and now I want to add a constraint that connects the truck and the trailer. What’s the proper way to set this up so that the Carrig rig constraints work together with the truck–trailer constraint?

Is it possible to rig a trailer using the Car Rig node?
Right now, if I apply the Car Rig to the truck, and following your instructions everything works fine — but the trailer ends up with no wheels. And if I try to rig the truck and the trailer as one object, the AutoRig treats everything as a single mesh, which breaks the setup.

What I’m trying to do is:

rig the truck and the trailer separately

keep the wheels working on both

make the trailer automatically follow the truck and turn realistically (like an actual semi-trailer)

Is there any way to combine setups or maybe tweak something inside the AutoRig so it supports a trailer?
Manually rigging the entire trailer would be pretty painful, so I’m hoping there’s a better solution.
tamte
Lightgodlike
Right now, if I apply the Car Rig to the truck, and following your instructions everything works fine — but the trailer ends up with no wheels.
not sure what you are referring to as "your instructions" but I assume it's the image with yellow descriptoions
which in general looks like a proper setup for this kind of sim

the immediate thing that comes to mind when you say that the wheels disappear may be that your trailer wheels have the same name as the wheels on the truck

in general it's a good idea to prefix everything to avoid potential name collisions to begin with
additionally make sure that your RBD Unpack has Enforce Unique Name Attribute... checked to resolve any outstanding name collisions
Lightgodlike
Yes you are right I found the solution yesterday The whole point is that the Car Rig assigns the attribute name = body to any object you rig. Therefore, we simply use the Attribute String Edit node to rename all the geometry and constraint primitives, as shown in the screenshot, and everything works.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB