Placing an object in front of pickup
#3

I changed to +90 and made some changes, now it works perfectly
if the RZ is like lower than -70 or more than 80
the Y has to be changed.

pawn Код:
if(rz > 80.0 || rz < -70.0)
            {
                y += (1.5 * floatcos((-rz+90), degrees));
            }
            else
            {
                x += (1.5 * floatsin((-rz+90), degrees));
            }
Reply


Messages In This Thread
Placing an object in front of pickup - by PaulDinam - 27.02.2013, 10:02
Re: Placing an object in front of pickup - by [MG]Dimi - 27.02.2013, 10:09
Re: Placing an object in front of pickup - by PaulDinam - 27.02.2013, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)