Hello! I hope some on can help. I want to write a system where I can have any number of square (or rectangular) blocks on the screen. They can any x velocity and any y velocity. I want to have gravity going on. If you can imagine - you are looking at the blocks from the side - not the top.
You can do anything with the blocks you want. So for instance you could stack a load up in a pyramid and then if you pushed the bottom left block you would push all the other blocks in its way (and some of the one on top would move too).
I can work out the collision functions but not really the best way of pushing the blocks and making them 'slide' over each other. Does anyone know the nest way to implement this?
Thank you - Rico
You can do anything with the blocks you want. So for instance you could stack a load up in a pyramid and then if you pushed the bottom left block you would push all the other blocks in its way (and some of the one on top would move too).
I can work out the collision functions but not really the best way of pushing the blocks and making them 'slide' over each other. Does anyone know the nest way to implement this?
Thank you - Rico