Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Solver collision contacts count is always 0
#2
(08-09-2020, 07:59 AM)dosinis Wrote: Solver collision contacts count is always 0, even though Obi Rope collides with some boxes that have obi collider and obi rigidbody attached to them. Also documentation about manual rope tearing seems to be outdated. Could you please give some examples how could I perform a rope tearing in script?

Hi there,

The contact list exposed by the solver is the actual contact list being used for simulation, so the count just can't be zero if collisions are taking place. Can you share the code you're using to count contacts?

Docs on rope tearing are for the latest version, 5.5: http://obi.virtualmethodstudio.com/api.html. Can you specify what parts seem to be outdated?

Rope components have a Tear() method that takes a ObiStructuralElement as input. You can find all structural elements of the rope in the rope.elements array, then it's a matter of passing the appropriate element to the Tear() method and call rope.RebuildConstraintsFromElements(); so that physical constraints match the element description.

You can see a full example in the ObiRope.cs file ApplyTearing() method, which is used to detect which elements are under most stress, sort them by stress, then tear them.

kind regards,
Reply


Messages In This Thread
RE: Solver collision contacts count is always 0 - by josemendez - 08-09-2020, 08:11 AM