i am making pool game how can i set my aimline width Up to the table border
like this
Develop games in your browser. Powerful, performant & highly capable.
Use the line of sight behavior and cast a ray. Then on ray intersected event you can use the object.lineofsight.hitdistance to set the width of your line.
thank you its works
can you please tell me one more thing that how can i reflect this ray from the border