I’m drawing a curveVertex shape by adding a point(x,y) at different intervals of time, this points are stored in an array, the array is use to draw the curve.
When my object goes to the edge of the screen, I render It at the opposite side of the screen. This cause the curveVertex to draw a straight line from one side of the screen to the other.
So I wander if it is possible to trim/cut the curveVertex to avoid the line that goes across the screen? Hope that makes sense.
Any helps will be much appreciated.