Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Destroy Obi Particles within Radius
#4
(04-04-2018, 08:22 AM)josemendez Wrote: Hi,

We cannot reproduce the issue. Turning any collider into a trigger still generates contacts for us. Can you post the exact code you're using? It is exactly the same as in the post you linked?

Hi there, thanks for the response. So I resolved the issue with the trigger not generating contacts (the script auto added a solver but I was using another one that I'd created in the scene). So now particles from the emitter will be destroyed on contact with a collider marked as trigger.

However, there's still an issue remaining that you might be able to help me with. When I press a key, I am scaling the size of the boxcollider2D ( the green outline is the collider that is being scaled).  When the boxcollider2D is not a trigger, the collider destroys particles when it scales and as it comes into contact with them (as expected). However, when it's marked as a trigger they are NOT destroyed when the boxcollider2D is scaled. So to clarify - I can fire particles at the box marked as a trigger and they are destroyed, but when a trigger collider is scaled up it does not destroy the particles (but unchecking the trigger flag makes it work).

I'm unsure why there is a difference in behaviour?
Reply


Messages In This Thread
Destroy Obi Particles within Radius - by AntLewis - 02-04-2018, 07:22 PM
RE: Destroy Obi Particles within Radius - by AntLewis - 04-04-2018, 08:25 PM