Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: Macol90 on July 15, 2016, 10:12:48 AM

Title: Multiple Fixed Joints on one object [SOLVED]
Post by: Macol90 on July 15, 2016, 10: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
Title: Re: Multiple Fixed Joints on one object
Post by: Macol90 on July 16, 2016, 01:01:02 AM
Nevermind.   I found a stupidly simple solution....
http://hutonggames.com/playmakerforum/index.php?topic=13215.0