![]() |
Collision stopped working after update - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html) +--- Thread: Collision stopped working after update (/thread-3009.html) |
Collision stopped working after update - Hakazaba - 06-07-2021 Hi, for some reason my collisions nolonger work in my scene since the update. I'm not sure if i've changed anything, but collisions are on in the solver, tested with obi colliders of different phases. Do you have any ideas for why this is? RE: Collision stopped working after update - josemendez - 06-07-2021 (06-07-2021, 12:59 PM)Hakazaba Wrote: Hi, for some reason my collisions nolonger work in my scene since the update. I'm not sure if i've changed anything, but collisions are on in the solver, tested with obi colliders of different phases. Do you have any ideas for why this is? 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, which is far more powerful and flexible than the old phase-based system. You will have to re-setup filtering, easiest way is to enter blueprint editor for each blueprint, select all your particles and set their "Collide with" property to "Everything". Check our FAQ: http://obi.virtualmethodstudio.com/faq.html Quote:I've upgraded my project to Obi 6.2, and collisions are no longer working. Is this a bug? Also check the manual for 6.2 ("Collisions" page, "Collision filtering" section), it explains how collision filtering works now: http://obi.virtualmethodstudio.com/manual/6.2/collisions.html Let me know if you need further help. RE: Collision stopped working after update - Hakazaba - 07-07-2021 Ok thank you very much RE: Collision stopped working after update - Hakazaba - 07-07-2021 How do i set the collisions for particles added with path.addcontrolpoint? RE: Collision stopped working after update - josemendez - 07-07-2021 (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. |