Hi, I'm in the process of writing an Android game, and I need just a little bit of help with some physics. I do not wish to implement an entire physics engine, as, 1) I have already tried the Java port of Box2D on an Android device, and there is a huge garbage collection problem, and 2) I don't think my problem is complex enough to need a physics engine.
Anyways, let me describe what I want to do with a picture:
Basically, I have some boxes fall from the top of the screen that, when they collide with an object, they stop falling and stack up (as shown in the picture). But rather than the boxes just sitting there and doing nothing, I want boxes to abide by the rules of basic physics. For example, I would like the light blue box on the top of the stack to tilt and fall off to the right. How would I accomplish this?
If anybody could point me to a place where I could learn the physics necessary to do this, I would really appreciate it. I have found a few tutorials about 2D physics, but they all seem to use spheres in their explanations and examples.
Thanks so much in advance.