Positioning gates from garage coordinates
#1

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:
pawn Код:
ix = x - 3.0 * floatcos(angle,degrees);
        y = y + 3.0 * floatsin(angle,degrees);
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.
Reply


Messages In This Thread
Positioning gates from garage coordinates - by dusk - 29.01.2014, 15:09
Re: Positioning gates from garage coordinates - by dusk - 02.02.2014, 15:38
Re: Positioning gates from garage coordinates - by rappy93 - 02.02.2014, 15:52
Re: Positioning gates from garage coordinates - by dusk - 02.02.2014, 16:00
Re: Positioning gates from garage coordinates - by rappy93 - 02.02.2014, 16:02
Re: Positioning gates from garage coordinates - by dusk - 08.02.2014, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)