Building Blocks with Correct Physics

architectpianistarchitectpianist Member Posts: 21
edited November -1 in Working with GS (Mac)
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?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    just set a scene gravity level of like 100 and then play with density for your blocks. say 25 for your thin blocks an 50 for your big blocks.
    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
Sign In or Register to comment.