}
}
}
protected void gimpact_vs_shape_find_pairs(Transform trans0, Transform trans1, GImpactShapeInterface shape0, CollisionShape shape1, IntArrayList collided_primitives) {
AABB boxshape = Stack.alloc(AABB.class);
if (shape0.hasBoxSet()) {
Transform trans1to0 = Stack.alloc(Transform.class);
trans1to0.inverse(trans0);
trans1to0.mul(trans1);
shape1.getAabb(trans1to0, boxshape.min, boxshape.max);
shape0.getBoxSet().boxQuery(boxshape, collided_primitives);
}
else {
shape1.getAabb(trans1, boxshape.min, boxshape.max);
AABB boxshape0 = Stack.alloc(AABB.class);
int i = shape0.getNumChildShapes();
while ((i--) != 0) {
shape0.getChildAabb(i, trans0, boxshape0.min, boxshape0.max);