I try to check some collision detection systems inside unit-tests. Here I noticed, that the collision detection seems not to work as expected. Just an example:
In this test, I spawn two entities with a collider. I spawn them on different positions, but then I move them to the same position. My expectation is, that after the next update of the app, I can find the collision in the CollidingEntities component of those entities.
From the documentation, I cannot see why this does not work. Is there any flag, I have to set in order to tell the physic system to perform another check on those entities?
Hello,
I try to check some collision detection systems inside unit-tests. Here I noticed, that the collision detection seems not to work as expected. Just an example:
In this test, I spawn two entities with a collider. I spawn them on different positions, but then I move them to the same position. My expectation is, that after the next update of the app, I can find the collision in the CollidingEntities component of those entities.
If I implement the test like this, it works:
However, if I have an update between the spawning and the mutation of the translation of entity 1, it does not work anymore:
From the documentation, I cannot see why this does not work. Is there any flag, I have to set in order to tell the physic system to perform another check on those entities?