29.01.2014, 15:09
Hey.
I get a garage objects x, y, z coordinates and Z rotation. I want to place its gate accordingly....
I tried calculating it myself and failed, my code:
note: z coordinate is not important.
So if someone could help me or atleast point me in the right direction i would be very happy.
I get a garage objects x, y, z coordinates and Z rotation. I want to place its gate accordingly....
I tried calculating it myself and failed, my code:
pawn Код:
ix = x - 3.0 * floatcos(angle,degrees);
y = y + 3.0 * floatsin(angle,degrees);
So if someone could help me or atleast point me in the right direction i would be very happy.