playMaker

Author Topic: Multiple Fixed Joints on one object [SOLVED]  (Read 876 times)

Macol90

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Multiple Fixed Joints on one object [SOLVED]
« on: July 15, 2016, 07:12:48 AM »
I'm creating a game where the objects attach to one another. It's important that they all keep their rigid bodies so they can interact with other unattached objects. Imagine a ball of trash rolling down a hill collecting more trash as it goes.

The best solution I've come up with is a Fixed Joint. Unfortunately there's no way, that I've found, to attach multiple Fixed Joints to a single object.

 - Collide into GameObject, create a Fixed Joint, assign the Collided GameObject to the new Fixed Joint, and repeat - 

The Fixed Joint's "Connected Body" is looking for a RigidBody and won't accept a GameObject. And I can't seem to get the RigidBody from the collided GameObject.

I'm looking into scripting options now but if someone knows of a better solution, or maybe knows of a modified version of the "Set Joint Connected Body" Action, that would be awesome!

Thanks,
Mike
« Last Edit: July 15, 2016, 10:37:30 PM by Macol90 »

Macol90

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Multiple Fixed Joints on one object
« Reply #1 on: July 15, 2016, 10:01:02 PM »
Nevermind.   I found a stupidly simple solution....
http://hutonggames.com/playmakerforum/index.php?topic=13215.0