Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope pin+collision problem.
#4
(06-08-2021, 05:38 PM)WinterXYZ Wrote: Thanks for the reply!

I've been using the filter variable already to configure various materials for different types of collisions (for example, structural materials like support beams allow objects to move through them).

I have tried to find a way to specifically access the first and last particle (as those are the ones that get pinned) to be able to change their collisions but I can't figure out how to do this.

This is a rough idea of the order my rope script goes through (it's very similar to the RopeNet script):
  • Create the rope blueprint
  • Set int filter
  • blueprint.AddControlPoint(filter goes here)
  • Then pin the points, and use ObiPinConstraintsBatch with AddConstraint(rope.solverIndices[0]...)
The closest thing I've come too is thinking is I need to use something like "rope.solverIndices[index value]" as, from what I can tell, this corresponds to each particle on the rope (and potentially they store the collision profile), but I can't actually access their filter data.

My thinking is a generate the rope with the filter profile I need, and then I do something like
  • rope.path.point[value of particle to change].filter = ObiUtils.MakeFilter(ObiUtils.CollideWithNothing, 0);
This way only that specific particle loses it's collision, but the rest remain intact.
Hi, I'm having a similar problem to this. Did you ever find out how to chalge the collision filter on a specific particle, or find any other solution?
Reply


Messages In This Thread
Rope pin+collision problem. - by WinterXYZ - 01-08-2021, 02:42 PM
RE: Rope pin+collision problem. - by josemendez - 02-08-2021, 07:46 AM
RE: Rope pin+collision problem. - by WinterXYZ - 06-08-2021, 05:38 PM
RE: Rope pin+collision problem. - by Destro26 - 22-06-2022, 09:55 PM
RE: Rope pin+collision problem. - by josemendez - 23-06-2022, 07:10 AM
RE: Rope pin+collision problem. - by Destro26 - 23-06-2022, 09:13 PM
RE: Rope pin+collision problem. - by josemendez - 24-06-2022, 07:09 AM