61
Ask a Question / [SOLVED] Calculate the degrees?
« on: June 07, 2020, 12:07:24 am »
Good morning to all,
I need a food for thought, please
I'm currently testing an accelerometer game.
I want the "ball" to hit an object and be pushed back in the opposite direction.
At the moment of the collision, I only have the data x-speed and y-speed of the ball available.
Is it possible to calculate the number of degrees from the two variables and to convert them in the opposite direction?
I hope I have not expressed myself too stupidly now.
I have inserted a small picture.
greetings
Thomas
I need a food for thought, please
I'm currently testing an accelerometer game.
I want the "ball" to hit an object and be pushed back in the opposite direction.
At the moment of the collision, I only have the data x-speed and y-speed of the ball available.
Is it possible to calculate the number of degrees from the two variables and to convert them in the opposite direction?
I hope I have not expressed myself too stupidly now.
I have inserted a small picture.
greetings
Thomas