How to have multiple characters carry a single object?

I’m working on a game similar to Pikmin, where you have little minions carry around objects for you. Currently, they carry objects using a physics constraint tool attached to them. This works when its a single minion carrying an object, but when multiple do this at once it messes with the physics and makes the object being carried freak out. what alternatives are there to physics constraints, that would work for having multiple characters carry a single object? alternatively, how can I alter the physics constraint properties so its physics don’t break like they currently do?

Hey @BuzuDev welcome to the forums!

Hope your are having a great time with Unreal Engine :smiley:

Regarding your question, I think the best way to do this is to use pure kinematic movement instead of physics! To do that, you will need to disable the physics when your “minion” grab the object but let me show you the step by step:

  1. In your minions, add a Scene Component and call it CarryTargetPoint. You will need to place this component exactly where the minion will “touch/grab” the object:

  2. Create a variable called “CarriedObject” with type same as the object you want to carry:

  3. Lets move to the object BP now! There you need to create some variables (as you can see in the following image, the “CarryingMinions” variable is an array of the same type as your minions):

  4. Now, in your object BP you need to put this to be sure your mesh has physics enabled at the start:

  5. Then, you will need to create a custom event to track if the object is being carried and how many minions are carrying it:

  6. The next step is to do the opposite, a custom event to track where minions stop carrying the object:

  7. Now is time to go back to your Minion BP and call those new events. You should call the corresponding event where you grab and release the object:

  8. The last part is to go back again to your Object BP and create the movement logic:

And that’s it!!

This should help you a lot with your issue! Let me know if you need more help! And, if you do, please share your blueprints so we can check them and provide a more accurate answer!