Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | sergiocanram |
Hi everyone!
I am trying to create a project where a Ball is going to hit a wall, and then, bounce back in a direction within a certain range around the “correct” angle. My idea is to use that as a way to increase difficulty as the game goes forward.
But can we control the bouncing angle that much? If RM is the regular angle, my idea is to randomize between (-5º, 5º) around RM, and so on. Can this be done with something like n.reflect(RM) but changing the angle? I am trying to do this but I am getting nowhere.
Any help will be helpful!
Sergio Can Ram