Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Detect specific rope collision.
#22
(06-07-2022, 12:20 PM)Gauri7 Wrote: Actually I didn't get it , can you please explain it little more ?

Sure,

Each particle in Obi has a collision filter, colliders also have one. The filter is just a 32 bit integer that determines which particles can collide against which colliders (or other particles). It's composed of two parts: a category and a mask. The category is simply a value from 0 to 15, the mask determines which categories the filter is allowed to collide against.

The initial values of the filters for all particles in the rope are specified on the path editor: you give each control point a category and a mask, and each particle picks its filter values from the nearest control points.

At runtime you can modify the filter for each particle by writing into the solver.filters array (just like you would for any other particle property, like positions or velocities).

The collision scripting section of the manual explains how to deal with filters in detail:
http://obi.virtualmethodstudio.com/manua...sions.html
Reply


Messages In This Thread
Detect specific rope collision. - by flaurens - 05-10-2020, 08:45 AM
RE: Detect specific rope collision. - by flaurens - 05-10-2020, 12:18 PM
RE: Detect specific rope collision. - by Elegar - 09-11-2020, 09:53 PM
RE: Detect specific rope collision. - by Elegar - 11-11-2020, 12:16 PM
RE: Detect specific rope collision. - by Gauri7 - 04-07-2022, 11:57 AM
RE: Detect specific rope collision. - by Gauri7 - 04-07-2022, 02:12 PM
RE: Detect specific rope collision. - by Gauri7 - 05-07-2022, 09:33 AM
RE: Detect specific rope collision. - by Gauri7 - 06-07-2022, 12:20 PM
RE: Detect specific rope collision. - by josemendez - 06-07-2022, 12:50 PM
RE: Detect specific rope collision. - by Gauri7 - 08-07-2022, 09:35 AM