I am working on a side-scroller, which is almost finished, but as I was play testing it, I came across this bug, and I am trying to figure out why it is happening.
For some reason really small objects can cause a much larger object to fly when the object lands on it, and I am not exactly sure why. For instance, a large box falls on top of a very small box. It doesn't happen 100% of the time, and I have had situations where it could cause a body to really soar.
I think it has to do with if the item is very small and another body AABB eclipses it (when an item pushes another item out) causing the reaction, I am pretty confident this is the issue, because if I spawn a very small box inside of a large box, the large box will fly in most situations. I am trying to figure out the best solution to this problem. If a box is under a certain size, should I enable isBullet, or could it be something to do with density?
For some reason really small objects can cause a much larger object to fly when the object lands on it, and I am not exactly sure why. For instance, a large box falls on top of a very small box. It doesn't happen 100% of the time, and I have had situations where it could cause a body to really soar.
I think it has to do with if the item is very small and another body AABB eclipses it (when an item pushes another item out) causing the reaction, I am pretty confident this is the issue, because if I spawn a very small box inside of a large box, the large box will fly in most situations. I am trying to figure out the best solution to this problem. If a box is under a certain size, should I enable isBullet, or could it be something to do with density?