Alexey
-
2007-02-19
- priority: 5 --> 7
In function _gim_aabbset_traverse_box_collision_sorted_pushtoken
for loop at the end pushes wrong triangle into array.
for (starttoken = 0;starttoken<count;starttoken++)
{
i = ptokens[starttoken].m_value;
AABBCOLLISION(intersected,paabb[i],test_aabb);
if(intersected)
{
GIM_DYNARRAY_PUSH_ITEM(GIM_RSORT_TOKEN,(*collided),ptokens[i]);
}
}
It should be
for (starttoken = 0;starttoken<count;starttoken++)
{
i = ptokens[starttoken].m_value;
AABBCOLLISION(intersected,paabb[i],test_aabb);
if(intersected)
{
GIM_DYNARRAY_PUSH_ITEM(GIM_RSORT_TOKEN,(*collided),ptokens[starttoken]);
}
}