28.01.2012, 19:32
How the hell can i attach object to another object that fits like i want?
i got like this now.. "ship" is the main object and i want to attach shipp1 and shipp2 to "ship"..
i did this: "ship"(pos/rot) - "shipp1"/"shipp2"(pos/rot)
but when in game the object doesn't fit right.. -.-
anyone got idea how to calculate pos and rot right?
i got like this now.. "ship" is the main object and i want to attach shipp1 and shipp2 to "ship"..
i did this: "ship"(pos/rot) - "shipp1"/"shipp2"(pos/rot)
but when in game the object doesn't fit right.. -.-
pawn Код:
ship = CreateObject(10794, 2960.53, -2041.31, 7.00, 0.00, 0.00, 90.00);
shipp1 = CreateObject(10793, 2960.42, -2116.40, 35.57, 0.00, 0.00, 90.00);
shipp2 = CreateObject(10795, 2960.49, -2043.60, 17.14, 0.00, 0.00, 90.00);
AttachObjectToObject(shipp1,ship,-0.11,-75.09,28.557,0,0,0,1);
AttachObjectToObject(shipp2,ship,-0.04,-2.29,10.14,0,0,0,1);
anyone got idea how to calculate pos and rot right?