Creating a Non-Static Static Object

Quote:
So at this point, the fire ball and frozen balls have touched?


No, they have not touched. The fire is a new fixture, as it is larger than the original ball.
Seems to me that if they have not touched and you make them static, they will never touch. So... no collision response is possible because they don't collide...

I get the feeling you just need to know how far apart they are (at least for the fire melting ice ball example), in which case you could check the distance between the two bodies, no?
Quote:
check the distance between the two bodies, no?


That is a possibility I've looked into, however the flames are a box shape, so simply checking the distance won't work properly. Unless you know of an algorithm for checking if two shapes overlap, regardless of shape.
There is a b2TestOverlap function in Collision.h that checks if two AABB's overlap. You can also use sensors on an "area body" to detect collision responses. Another suggestion is you can query (b2world.QueryAABB()) for an area (using an AABB) to check if there's any bodies that are overlapping that area.
IIIIITTT WOOOORRRKKSSSS!!!!!!!!!!!!!!!!!

Ha ha, yes! It finally works! After some digging around in the API I finally found the method that helps me. For those who are curious, below is the code that fixes the problem.

Quote:
//Find the two types of bodies in question
if (AABB.testOverlap(ballA.getBody().m_fixtureList.m_aabb, ballB.getBody().m_fixtureList.m_aabb))
{
//Add new contact to collisionListener
}

Original thread: https://box2d.org/forum/viewtopic.php?t=8312