08.04.2016, 18:18
Just add another 90 degrees and then you can get from A to C using the 'facing forward' code. Its coords are 3(sin(18.4+90),cos(18.4+90)). Then to get D just do C+B-A. In GTASA reverse degrees it's like this:
Or you can just calculate D from B the same way.
Код:
cx += 3 * floatsin(-a-90, degrees); cy += 3 * floatcos(-a-90, degrees); dx = cx + ax - bx; dy = cy + ay - by;