Hi everyone,
I am creating one POOL TABLE unity game. I want to get the direction of ball to show user where the ball will move.
consider the following image for example[15061-pool+table_1.jpg|15061]
Here A is our cueBall and B is ball on the table.
Let’s consider that when user hit ball A in the direction as per “DIR 1” it will hit to ball B at that time ball A will be at the position of C as per image.
Now I want to know there point
-
how to find position of c.
-
what is the touch point of B & C means which place A will collide with B.
-
In which direction ball B will move after collide by A.
I hope this Question is clear to all and provide proper detail for my problem.
Fattie
2
Why not just use the physics built in to Unity? It is completely automatic. You can make a full Pool game in Unity in maybe 5 minutes!
Regarding your specific question, you can google it up very easily. it’s not really so much a Unity question.
As an exercise, in Unity you could do this, just shoot the parallels from the outside of the circle. It will tell you where (if at all) TouchPoint is.