Hi !
I am making a pool game and I have some problems with trajectory line.
What I want to do is drawing a short line that will show where the ball will go after it was hit by the white ball.
For that I found an interesting method. I save the step(). I apply force to the white ball . I go like 400 steps forward . Save the coordinates of the white ball and the ball that made contact with the white ball. I go back to the step saved.
The problem is : how do I do that ?
1. How do I save the Step() ?
2. I thought to identify the objects with collision callbacks or something like that , it's ok ?
If you have another solution to predict the trajectory of the ball I would gladly listen to 😀
PS: Sorry for bad english , it's not my native language.
I am making a pool game and I have some problems with trajectory line.
What I want to do is drawing a short line that will show where the ball will go after it was hit by the white ball.
For that I found an interesting method. I save the step(). I apply force to the white ball . I go like 400 steps forward . Save the coordinates of the white ball and the ball that made contact with the white ball. I go back to the step saved.
The problem is : how do I do that ?
1. How do I save the Step() ?
2. I thought to identify the objects with collision callbacks or something like that , it's ok ?
If you have another solution to predict the trajectory of the ball I would gladly listen to 😀
PS: Sorry for bad english , it's not my native language.