Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Newby lost, Trying to make a robe bridge
#6
(28-03-2022, 10:34 AM)oppay Wrote: So to make my rope bridge i will need to attach all the plank to the rope, but set them in a different collider filter then the one of the rope?

Correct.

(28-03-2022, 10:34 AM)oppay Wrote: So to make my rope bridge i will need to attach all the plank to the rope, but set them in a different collider filter then the one of the rope? It sound pretty redundant to add a attachment manually for each plank. Is there a better way to connect them?

You must attach the planks to the rope somehow, right?. You can't magically have planks attached to the rope without actually telling the engine they must be attached and where along the rope(s) you wish to attach them.

If you were to use Unity's joints to do this, you'd be in the exact same situation: you would need to manually create all individual joints in-between the planks and attach them to the plank rigidbodies. For long bridges with a lot of planks this is a huge time sink indeed.

However doing this manually isn't the only option. You can also create attachments programmatically, or even just the underlying constraints. This does require some C# scripting skills on your part. See Adding/removing constraints in the scripting section of the manual: http://obi.virtualmethodstudio.com/manua...aints.html

If you're going to have multiple bridges in your game, writing yourself some sort of BridgeBuilder script that automatically creates the ropes, places the planks, and attaches them to the ropes would be a time saver in the long run.
Reply


Messages In This Thread
RE: Newby lost, Trying to make a robe bridge - by josemendez - 28-03-2022, 10:42 AM