Basically I want a custom toy maker in a VR game. I want to have various heads, arms, legs, etc. They will be picked up and touched onto a torso to fix in place.
I can't figure out how to do this.
Too bad the Fixed Joint component can't be enabled or disabled or that would be way easy. So is there a way that a collision can trigger it to be added or something to that effect?
I can't just store the collision and use that as the fixed joint Connected Body property. First of all, the gameobject can't move if you start it with a fixed joint and no connected body specified. As a less desirable option, I could have the torso frozen before connection, but I still can't specify what to connect with on collision. The collision can store a Game Object, but the Set Property action can only specify an Object as the variable to use as the Connected Body in the fixed joint.
Maybe I need to set the rigid body I want as the variable, but how do I do that?
Or maybe someone has a better idea on how I can get various parts to snap together on touch?