1
General / I need help with this
« on: May 22, 2024, 08:03:37 pm »
I'm developing a pool game using SFML and Box2D, and I'm currently facing an issue with creating the cue ball outline when the player aims. I have three rays that are cast: two black ones and one white one. How can I determine the position of the outline of the cue ball using the shortest of these rays as the player aims. I am using the ray cast function of box2d.
I have attached picture of the outline for further reference
![](https://en.sfml-dev.org/forums/index.php?action=dlattach;topic=29536.0;attach=6122)
I have attached picture of the outline for further reference