Making ball bounce with a constant height.
AuVidaZen
Member Posts: 0
Hi everyone,
Newbie here on GS so please bare with me.
I created an actor (ball) that bounces off vertical and horizontal "walls" when dropped from a certain height. The gravity property is set to a value for the scene so the ball will accelerate towards the bottom floor. The problem is that over time, the ball will not bounce as high and eventually will stop. The game idea I have requires that the ball keeps on bouncing indefinitely. So, how do I keep the ball bouncing at a constant height?
Any help would be appreciated
Comments
I would switch off the scene gravity - and use an Accelerate behaviour on the ball actor, this will give you a lot more control.
The Accelerate behaviour should be set to 270° and to 'scene'.
Also you can play with the friction and bounce attributes for both the ball actor and the wall actors.