public void update(float deltaTime){
position.x = position.x + (ballSpeed* deltaTime);
position.y = position.y + (ballSpeed* deltaTime);
}
The code above is part of my update method where i basically get the ball to move around the screen, and when it hits the walls it bounces off.
However i put the value of 'ballSpeed' to be 10, it moves fine. Increase it to 30 and it practically doesn't move. Increased it to 120 and it moves slightly faster but not as fast as when the value is 10.
I'm not sure why it does this. Any one help ?