Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Crasy Gamer · Sep 03, 2013 at 12:38 PM · collisiondirectioncollaborationpool

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 examplealt text

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.

pool table_1.jpg (308.6 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Fattie · Oct 15, 2013 at 10:51 AM 0
Share

@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.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

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.

![![![alt text][1]][1]][1]


pipe-method.jpg (63.5 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges