AttachObjectToObject
#5

if you attach an object, the potition and rotation is RELATIVE to the first object (parent), so its the best way to map it how you want, then subtract the position ship from position ship2 (rotation too, but you can do that later):
Код:
position x y and z:
ship:   10.0   20.0   0.0
ship2: 15.0   08.0   0.0
do that math now:
15-10=5
8-20=-12
0-0=0
..so your offset to attach ship1 to ship, is 5.0, -12.0, 0.0
Reply


Messages In This Thread
AttachObjectToObject - by nejc001 - 28.01.2012, 19:32
Re: AttachObjectToObject - by Da' J' - 28.01.2012, 21:31
Re: AttachObjectToObject - by nejc001 - 29.01.2012, 07:44
Re: AttachObjectToObject - by nejc001 - 03.02.2012, 05:21
Re: AttachObjectToObject - by Babul - 03.02.2012, 05:41
Re: AttachObjectToObject - by nejc001 - 03.02.2012, 06:12
Re: AttachObjectToObject - by thimo - 03.02.2012, 06:16
Re: AttachObjectToObject - by ғαιιοцт - 03.02.2012, 06:16
Re: AttachObjectToObject - by nejc001 - 03.02.2012, 06:17
Re: AttachObjectToObject - by thimo - 03.02.2012, 06:36

Forum Jump:


Users browsing this thread: 2 Guest(s)