chikavelvet / 3DPool

0 stars 0 forks source link

Improve Guide Line #6

Closed Rishi-Amarnani closed 6 years ago

Rishi-Amarnani commented 6 years ago

Right now the guide line we have is great. However, in a lot of pool games the guide line branches off and shows you where the ball you're hitting will go if you launch now. We need to add this as well.

Figuring out the direction the ball will go is easy. Essentially we just draw a line from where on the ball's surface we're aiming through the center of the ball. We extend this line out a bit, and this should give us the direction the ball will go if we hit it now.

The harder part (might be easy actually) is actually displaying the effect in that direction. I think it could be hard because we had a bit of trouble doing this with the stick.

Rishi-Amarnani commented 6 years ago

Also, in order to display the effect, we have to first detect whether or not we're aiming at a ball. We can probably do this with raycasts.

Rishi-Amarnani commented 6 years ago

Decided its not necessary