How to Unstick a Ball?

NesesitaGamesNesesitaGames Member Posts: 160
edited November -1 in Working with GS (Mac)
In the pinball-esque game I'm working on, the ball will sometimes get "stuck" in a dead spot. What would be the best way to unstick the ball?

Should I make a rule that when the speed of the ball is less than zero, accelerate it randomly? Should I be measuring its velocity as well? Or should I be considering using the Accelerometer here?

Thanks very much :)

Comments

  • NesesitaGamesNesesitaGames Member Posts: 160
    Sorry to bump, but... bump? Anyone?
  • simo103simo103 Member, PRO Posts: 1,331
    what is you rule(s) and behaviors that create the ball to move in the first place?

    If the ball is just reacting to collisions of other objects check the physics of friction and restitution and play around with those numbers a bit to get a desired effect.

    I wouldn't use the ideas you suggested because a realistic movement should be achievable with the physics available to GS just need to know what is effecting your ball.
  • NesesitaGamesNesesitaGames Member Posts: 160
    Thanks for the reply, simo103! My scene has no gravity, and the ball has a downwards acceleration from launch. It then runs into curves and obstacles with various restitution and friction properties.

    I'm doing my darndest to eliminate any "dead spots" from the design :) I do agree that suddenly accelerating the ball in a random direction will look unrealistic, though.
  • AjBlueAjBlue Member Posts: 215
    what is your friction on all of the objects on the board, if you have friction on them thats why you ball is slowing down in certain spots
  • NesesitaGamesNesesitaGames Member Posts: 160
    Thanks, AjBlue- I've removed friction on the objects, and so far no dead spots :) Thanks so much for your help.
Sign In or Register to comment.