Hi,
i don’t know if this is the correct forum for my question, so i excuse in advance.
i do a little adroid-2D-game, where i have some random points generated first, then the user can touch one and while holding, can “draw it like a bow” and by releasing touch, shoot it around.
now when a user grabs such a point, lets call it point A, and draws back the finger, I have a nice line drawn by LineRenderer from A to the touched position (lets call it point P)… but I also want a line beeing drawn like a targeting-line, where the point A will be shot after releasing touch…
how would I calculate this point?? -.-
sorry I am a total looser @ math ![]()
two examples… first the simlier one:
… so lets say, the user touches point A at … A(0/0)
… and draws back the finger to point P(3/3)
… then the reflected point where to draw the targeting-line would be at P’(-3/-3)
… now a other one:
… so lets say, the user touches point A at … A(-2/1)
… and draws back the finger to point P(-1/-2)
… then the reflected point where to draw the targeting-line would be at P’(-3/4)
I hope you understand what I mean because I also suck @ explaining stuff -.-
please I beg for help, I struggle with this for weeks now.