Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Creating a bungee cord between two objects
#2
(10-08-2020, 05:11 PM)Bluerex Wrote: Hi,

I am trying to create a bungee cord between two objects that can have opposite resistances. When one object pulls too far, the bungee spring effect snaps in and brings the two objects together using physics.

I've gotten reasonable results with Obi doing this, but nothing has felt perfect... I am pretty new to Obi Rope so I was just hoping someone could throw some me some pointers on how to achieve this:
  • Connect a rope between two objects
  • Have the rope length be finite
  • When the rope is stretched too far, it 'snaps back' (instead of breaking)
  • This causes the two objects to snap towards each other using physics
As a bonus, I'd like to play with the idea that the rope still acts as a cord between the two objects, but doesn't interact with other objects in the scene.

Thanks for the help!

Hi there,

Reading the manual will answer most of your questions right away Guiño:

Connect a rope between two objects.:Use attachments. See: http://obi.virtualmethodstudio.com/tutor...ments.html
Have the rope length be finite: Use more substeps. See: http://obi.virtualmethodstudio.com/tutor...gence.html
When the rope is stretched too far, it 'snaps back' (instead of breaking): Disable the "tearable" checkbox in the rope.
This causes the two objects to snap towards each other using physics: Should happen automatically with all the above.



Quote:As a bonus, I'd like to play with the idea that the rope still acts as a cord between the two objects, but doesn't interact with other objects in the scene.

This is what happens by default. Unless you add a ObiCollider component to an object, the rope won't interact with it. See:
http://obi.virtualmethodstudio.com/tutor...sions.html
Reply


Messages In This Thread
RE: Creating a bungee cord between two objects - by josemendez - 12-08-2020, 01:52 PM