How to Unstick a Ball?
NesesitaGames
Member Posts: 160
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
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
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.
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.