Sorry for double topic (not much activity here, just let me know if I should rather continue my previous topic than posting a new one )
So the only one tutorial that I found about ray casting was the iforce2d's tutorial. I am having difficulties to undestand the tutorial.
Can you show me an example of code of a ray cast ? (preferably with helpful commentaries)
Now for my pool game , can I identify which body intersect with the ray cast ?
I succeded with time control to predict the positions of the balls (thanks irresistible force for the idea) and this is the last problem.
So the only one tutorial that I found about ray casting was the iforce2d's tutorial. I am having difficulties to undestand the tutorial.
Can you show me an example of code of a ray cast ? (preferably with helpful commentaries)
Now for my pool game , can I identify which body intersect with the ray cast ?
I succeded with time control to predict the positions of the balls (thanks irresistible force for the idea) and this is the last problem.