Hello,
I think I may have discovered a bug in this function when using the boundary listener to destroy bodies that violate the world AABB. Bodies that breach m_worldAABB.upperBound.y caused a memory allocation problem for me, although destroying bodies that violated any of the other three sides of the world AABB worked fine.
Replacing the code with this seemed to do the trick:
Can anyone else reproduce this bug, or is it only an issue with my D port?
I think I may have discovered a bug in this function when using the boundary listener to destroy bodies that violate the world AABB. Bodies that breach m_worldAABB.upperBound.y caused a memory allocation problem for me, although destroying bodies that violated any of the other three sides of the world AABB worked fine.
Replacing the code with this seemed to do the trick:
Code:
public bool inRange(bzAABB aabb) {
return(aabb.lowerBound.x > m_worldAABB.lowerBound.x &&
aabb.lowerBound.y > m_worldAABB.lowerBound.y &&
aabb.upperBound.x < m_worldAABB.upperBound.x &&
aabb.upperBound.y < m_worldAABB.upperBound.y);
}
return(aabb.lowerBound.x > m_worldAABB.lowerBound.x &&
aabb.lowerBound.y > m_worldAABB.lowerBound.y &&
aabb.upperBound.x < m_worldAABB.upperBound.x &&
aabb.upperBound.y < m_worldAABB.upperBound.y);
}
Can anyone else reproduce this bug, or is it only an issue with my D port?