- Home /
How to get Direction after cueBall collide with any ball in unity3d ?
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
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
1) how to find position of c.
2) what is the touch point of B & C means which place A will collide with B.
3) 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.
@Crasy PLEASE TIC$$anonymous$$ AN ANSWER, THAN$$anonymous$$S, TO $$anonymous$$EEP THE BOARD TIDY. It's the only way you get karma points so you can ask more questions.
Answer by Fattie · Sep 03, 2013 at 01:03 PM
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.
][1]][1]][1]
Your answer
![](https://koobas.hobune.stream/wayback/20220613113510im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Change Direction on Collision 6 Answers
How to change velocity directly to a certain speed while keeping the collide direction? 1 Answer
Detecting when an object enters a collider from the top? 1 Answer
Checking collision direction. 1 Answer
How to check direction of wall on character controller hit? 2 Answers