Making detonator explosions follow the gameobject

I am using the detonator framework that is free, from the assets store. I can get it to explode and such and can instantiate example explosions, but he explosions don’t follow my objects.

I have a slow moving rectangle (as an example object) and i make a missile collide with it. When my missile collides with it, it creates an empty gameobject, parents it to the rectangle, adds a Detonator script to the empty gameobject, and then the missile calls Destroy() on itself.

The result is that the explosion goes off (basic one created by detonator script) and does not follow my rectangle. The explosion looks off and is stationary.

How do i get it to follow the rectangle object?

Your particles are probably set up to ‘simulate in world space’. You want local space instead, if that’s the case.

Parent the explosion to the object to the rectangle:

explosion.parent = rectangle;