Hello dear Constructors!!
In my latest project I've recently run into an annoying problem. I'm creating a game revolving around a bouncing ball that is supposed to bounce across flat and angled surfaces. While the 'Bounce' action works fairly well to simulate the bounces, the direction the ball gets from the bounce seem to include some kind of random element. This since the ball bounces in differnt ways everytime I test it out even though the layout of the map remaines the same. In my project it is important that the ball bounces in the same way every time.
My first question is therefore, is there a way to "fix this", to force the ball to bounce the same way every time, or do I need to create this kind of physics myself?
If the only solution is to do it myself, how is the most effective (noncomplex) way to create this? before I've just inverted the yVelocity everytime the ball hits the ground, but on angled surfaces I need another formula (using vectors, angles?).
Any help is Greatly appreciated!!