Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope not colliding with Obi Colliders after upgrading to 6.2
#3
(22-06-2021, 06:39 PM)josemendez Wrote: Hi!

The changelog and upgrade notes of 6.2 will give you the answer: in 6.2, phase based collision filtering has been replaced by a category/mask system.

Enter edit path mode for your rope(s), select your control points and set the “Collides with” field to “Everything”.

Also check the manual for 6.2:

http://obi.virtualmethodstudio.com/manua...sions.html

Let me know if you need further help.

Thanks! If anyone else is running into this issue for runtime code, you need to add a "filter" to your control points.

Code:
int filter = ObiUtils.MakeFilter(ObiUtils.CollideWithEverything,0);

        // Procedurally generate the rope path (a simple straight line):
        blueprint.path.Clear();
        blueprint.path.AddControlPoint(Vector3.zero, -localHit.normalized, localHit.normalized, Vector3.up, 0.1f, 0.1f, 1, filter, Color.white, "Hook start");
        blueprint.path.AddControlPoint(localHit, -localHit.normalized, localHit.normalized, Vector3.up, 0.1f, 0.1f, 1, filter, Color.white, "Hook end");
        blueprint.path.FlushEvents();
Reply


Messages In This Thread
RE: Rope not colliding with Obi Colliders after upgrading to 6.2 - by toomasio - 22-06-2021, 08:53 PM