Building Blocks with Correct Physics
architectpianist
Member Posts: 21
Hi,
I have a game where the player builds towers out of big blocks and narrow blocks, and it has to have good physics to work. So I'm thinking an "accelerate" behavior to simulate gravity, but what I want to know is (1) how to make the blocks non-overlappable, and (2) how to make them rotate on their own, for instance if a narrow block is set on top of a single big block, somewhat like this:
__
| I'd want the block on top to fall over. Any ideas?
I have a game where the player builds towers out of big blocks and narrow blocks, and it has to have good physics to work. So I'm thinking an "accelerate" behavior to simulate gravity, but what I want to know is (1) how to make the blocks non-overlappable, and (2) how to make them rotate on their own, for instance if a narrow block is set on top of a single big block, somewhat like this:
__
| I'd want the block on top to fall over. Any ideas?
Comments
Then set collide behaviors up so they all bounce off each other. also you will want to set the restitution of the blocks to something low like .2 unless you want them to bounce off each other like trampolines