Actors wont stop moving after bounce!!

bonywabonywa Member Posts: 13
edited November -1 in Working with GS (Mac)
Hello,

I just got GameSalad and am trying to figure it out. I am dropping a ball on a flat object and wanting it to bounce a little before coming to a stop… like in real life. The ball bounces less and less and then appears to stop but then bob up and down randomly. This is annoying and unrealistic. Anybody?

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Open up the physics for the ball and the ground actor.

    Try changing the restitution on both actors (lower=less bounce)

    You can also try increasing the mass (density).

    Darren.
  • bonywabonywa Member Posts: 13
    Yes I understand that restitution affects the bounce of an object, however even very bouncy things eventually come to a stop. I increased the mass, tried using scene gravity, and added downward acceleration to the ball. The ball still randomly wiggles up and down slightly when coming to rest on the ground. The only thing I can think of is checking for a minimum movement variable and then locking the object in place if it goes below that limit. I just figured there is an easier way or that it would be coded into the physics code. Any other suggestions? Thanks.
  • bonywabonywa Member Posts: 13
    Ah figured it out. Apparently drag has an awkward effect on objects that have stopped. I do not think I will need drag for my game so I will keep it at 0. I guess an object that is not moving should not have drag so people who use the drag may need to disable it if the object is still and enable it if it is moving. Have a good one.

    Travis
Sign In or Register to comment.