Hi, i'm a beginner , my problem is : i have two containers each having (sf::Shape) objects , my code is something like this:
//imagine two containers with iter1 is for container 1 and iter2 for the second
for(//traverse first container)
{
for(//traverse second container)
{
if((iter1->getColor() == iter2->getColor()) && (col_det(//pass)))
//do something
}
}
the collision detection works fine (simple circle method ) but the color part is not working, i.e. it collides regardless of the color.WHY?
please help me and remember i'm still a beginner and stupid.
thanks in advance.