Advanced Question Attachment help

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
10,659
Reaction score
4,465
Points
203
Location
Dallas, TX
I am trying to attach a displacement booth to my vessel. I have the attachements set up in the CFG.
This is the child displacement cfg:
ClassName=displacement
Module=plugin\displacement
BEGIN_ATTACHMENT
P 0.0 -2.899 0.975 0 -1 0 0 0 1 BTM
P 0.0 -2.899 0.975 0 -1 0 1 0 0 B2
END_ATTACHMENT

And here is my vessel parent cfg
; === Configuration file for vessel class Alphapad ===
ClassName = ALPHAPAD2
Module = ALPHAPAD2
BEGIN_ATTACHMENT
C -28 .07 32.80 0 1 0 0 0 1 pd1
C 80 .07 2.774 0 1 0 1 0 0 pd2
END_ATTACHMENT
In the module for the alphapad there is a parent point set up.

here is the scenario:
ALPHAPAD:ALPHAPAD2
STATUS Landed Moon
POS -29.9988570 0.0379340
HEADING 66.55
PRPLEVEL 0:1.000
NAVFREQ 0 0
UMMUCREW Capt-Peter_Falcon-41-65-74
UMMUCREW pax-bob-33-70-70
UMMUCREW Doc-George_HealGood-15-70-45
UMMUCREW -Albert_Jr_Falcon-15-70-45
END
acar:displacement
STATUS Landed Moon
POS -29.9988570 0.0379340
HEADING 66.55
ATTACHED 0:2,ALPHAPAD
NAVFREQ 0 0
END
bcar:displacement
STATUS Landed Moon
POS -29.9988570 0.0379340
HEADING 66.55
ATTACHED 1:3,ALPHAPAD
NAVFREQ 0 0
END
What I want is one displacement vessel to used attachment point 1 and attach to attachment 1 on the Alpha pad it should align along the Z axis.
And another displacement vessel to use attachment 2 to attach to point 2 on the Alphapad. It should align along the x axis.

But it looks the displacement vessels are using the same point.

I am using attachment manager to attach.
Alphapad has 4 parent point, Lpad, Ummu, pd1,pd2

In Attachment manager it shows that acar is usuing child point 1 and attach to parent 3 on the AlphapAd and bcar is using 2 to attach to#4 on the pad.


Any ideas?
 
Are these points supposed to be the same ?

Module=plugin\displacement
BEGIN_ATTACHMENT
P 0.0 -2.899 0.975 0 -1 0 0 0 1 BTM
P 0.0 -2.899 0.975 0 -1 0 1 0 0 B2
END_ATTACHMENT
 
yes and no. The same value as far as location the difference being the direction. one is to be along the x and the other along the z axis
 
with SC3 the first three numbers are the position , the second three are the direction, and the third three are the rotation, not sure about the order of a regular config file.
 
oops. I meant rotation. I am using the same vessel Displacement booths. But I need one to align on the x axis and another to align on the z axis. That is why the 2 point being the same except for rotation
 
You might need to change the direction, 1,0,0
 
and then 0,0,1 for the z axis? What about rotation. They need to be sitting on the ground so the child rotation would be -y and the parent +y?
 
It all depends how the model was made in the 3D modeler.
 
Thanks. I can't get one to be on the z and the other on the x. Here is an image. of what I am trying to do.

here are the new cfg info:
Alphapad-Parent
BEGIN_ATTACHMENT
C -28 .07 32.80 0 0 1 0 1 0 pd1
C 80 .07 2.774 1 0 0 0 1 0 pd2
END_ATTACHMENT
disp-Child
BEGIN_ATTACHMENT
P 0.0 -2.899 0.975 0 0 1 0 1 0 BTM
P 0.0 -2.899 0.975 1 0 0 0 1 0 B2
END_ATTACHMENT
scn:
acar:displacement
STATUS Landed Moon
POS -29.9988570 0.0379340
HEADING 66.55
ATTACHED 0:2,ALPHAPAD
NAVFREQ 0 0
END
bcar:displacement
STATUS Landed Moon
POS -29.9988570 0.0379340
HEADING 66.55
ATTACHED 1:3,ALPHAPAD
NAVFREQ 0 0
END
The red box is good it should be acar but the yellow box follows the same axis as the red one.
 
Last edited:
I'm not really sure what you mean by the image, sorry.
 
You want to put them in line with each other ?
 
not in line but 90 degrees out. on a clock the red box would be 12 and the yellow 3
 
Isn't that what it shows ?
 
yes on the image but in Orbiter not. The yellow one which is bcar is aligned like the red one. It should be 90 degrees out. Here is what it looks like in Orbiter. Acar is fine. Bcar usesP 0.0 -2.899 0.975 1 0 0 0 1 0 B2

Alphapad c 80 .07 2.774 1 0 0 0 1 0 pd2
 
Last edited:
try

Bcar
P 0.0 -2.899 0.975 0 0 1 1 0 0 B2
 
Are the attachments to the ground the same direction and rotation for both cars ?
 
Thanks
I think works:
BEGIN_ATTACHMENT
P 0.0 -2.899 0.975 0 0 1 0 1 0 BTM
P 0.0 -2.899 0.975 0 0 1 0 1 0 B2
END_ATTACHMENT

Since they are the same I really need 1 point.
The parents are different.
 
Back
Top