need help with collision rules

RodericRoderic Member Posts: 145
edited November -1 in Working with GS (Mac)
Hi All.... I need some help again. I'm having trouble with collisions.

I have falling actors, i.e. snowflakes. I want to make them stack up on the bottom, and eventually fill the screen. Right now I have a rule that says if the actor hits the ground they will stop. That made them all line up behind each other on the ground. So, to make them stack up, I added a rule that would also make them stop if they collided with each other. The obviously problem there is that they might collide in mid air and then stop there.

How can I create the effect of falling snowflakes where they can collide on the way down, but then stack up and fill the screen?

Thanks!

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    Add barriers on the side, and don't have those rules. And just have them collide with the barriers, and themselves.
    Hope that helps!
    ~CTM
  • RodericRoderic Member Posts: 145
    Thank you for the suggestion. Now they all bounce around like bouncing balls. I want them to stop the way a snowflake would stop. Can you suggest how I might create this effect?

    Thanks.
  • RodericRoderic Member Posts: 145
    I figured it out, so in case anyone is interested, it is the restitution number. I've been playing with it and I set the number to .10 or .20 and that seems to work great.
Sign In or Register to comment.