Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision stopped working after update
#5
(07-07-2021, 03:18 PM)Hakazaba Wrote: How do i set the collisions for particles added with path.addcontrolpoint?

One of the arguments for AddControlPoint is the filter. This is a 32-bit integer where the 16 most significant bits define the collision mask, and the 16 less significant bits define the category.

You can build the filter yourself using bitwise operations, and there's also helper functions if you don't want to mess with bits yourself. ObiUtils.MakeFilter will create the filter for you given a mask and a category. For instance:

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

This builds a filter for category 0 that collides with everything.
Reply


Messages In This Thread
RE: Collision stopped working after update - by josemendez - 07-07-2021, 03:35 PM