I have a component called Collided which is attached to an entity by the collision detection system when the entity has collided with one or more objects.
The Collided component is then deleted when all the collisions for the entity have been resolved (currently just entity pos = prev pos).
Due to the delayed attach/detach, this causes my entity to flicker when continuing walking through an object.
For now I’ve resolved this by using an isActive variable rather than attach/detach.
Could someone please provide more information on when the delayed attach/detach is called (i.e. when in the next update)?
Is there a way I can get this to work using the attach/detach rather than the isActive variable?