Ok - this seems to be a major problem, so I've just opened a new thread for that.
I've found a very strange effect. If I scale the normal with an value >1 the objects seem to behave more ok, if the value <1 the strange effect increases.
I've changed the normal this way:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| if (normalR != null) {
normal.m[0] = normalR.getValue(0);
normal.m[1] = normalR.getValue(4);
normal.m[2] = normalR.getValue(8);
}
else {
MathUtils.dMULTIPLY0_331 (normal,b1.R,normalC);
}
normal.scale(20f); invert_normal = !invert_normal; if (invert_normal) {
normal.scale(-1);
}
depth = -s; |
Something I also found out: some boxes seem to disappear, when they collide. This is more or less independent of the scale value (at least I wasn't able to see a major difference)