Second Silly Question: Attachments

Shrivenzale

New member
Joined
Apr 1, 2008
Messages
5
Reaction score
0
Points
0
Sorry about this. I'm trying to load one of Greg Burch's space station building blocks onto a space shuttle (Discovery from the 'Shuttle Fleet' addon).

If I add the module as it's defined by default, it ends up sitting in the bay across-ways - the BM201 module's hatches are sticking out the sides of the shuttle while on the pad.

Now, I know that to change this I have to modify the attachment points in the BM201.cfg file. By default, they look like this:

; === Attachment specs ===
;BEGIN_ATTACHMENT
;P 0 2 0 0 1 0 1 0 0 X1
;P 0 -2 0 0 -1 0 -1 0 0 X2
;END_ATTACHMENT

I have tried tweaking each number in turn to no avail - the module: moves but doesn't rotate; vanishes entirely; gets squashed; shrinks; or renders module, shuttle and planet invisible and all I can see is stars (as in "my God, it's full of"). If someone could tell me which numbers I need to tweak to rotate the module so that it lies along the shuttle's fore-aft axis (Z?) I'd be very grateful.

Also: if this isn't the right section of the forum to be posting this sort of thing, please correct me! :)
 
I think there is a manual that talks about this. That is all I know though.
 
which attatchment are you trying to rotate ? Can you show a pic ?
 
Yep. This is how it looks with the default config for BM201:

2139.jpg
 
Sorry about this. I'm trying to load one of Greg Burch's space station building blocks onto a space shuttle (Discovery from the 'Shuttle Fleet' addon).

If I add the module as it's defined by default, it ends up sitting in the bay across-ways - the BM201 module's hatches are sticking out the sides of the shuttle while on the pad.

Now, I know that to change this I have to modify the attachment points in the BM201.cfg file. By default, they look like this:

; === Attachment specs ===
;BEGIN_ATTACHMENT
;P 0 2 0 0 1 0 1 0 0 X1
;P 0 -2 0 0 -1 0 -1 0 0 X2
;END_ATTACHMENT

I have tried tweaking each number in turn to no avail - the module: moves but doesn't rotate; vanishes entirely; gets squashed; shrinks; or renders module, shuttle and planet invisible and all I can see is stars (as in "my God, it's full of"). If someone could tell me which numbers I need to tweak to rotate the module so that it lies along the shuttle's fore-aft axis (Z?) I'd be very grateful.

Also: if this isn't the right section of the forum to be posting this sort of thing, please correct me! :)

The first thing to do is read the manual about the format of attachment point definitions. The numbers come in triples.
The first three numbers are the attachment location: X Y Z.
The second three numbers are a direction vector (unit length) which points outward from the module, also X Y Z.
The final three numbers are an orientation vector (unit length). They point to what you might call the 12 o'clock position of the attachment point.

So, to re-orient the module you need to adjust the last three numbers. In the case of BM201 the orientation vectors point along the X axis of the module. The need to point along the Z axis. So, change them to:

Code:
 ; === Attachment specs ===
;BEGIN_ATTACHMENT
;P 0 2 0    0  1 0 [B]0 0 1[/B]   X1 
;P 0 -2 0   0 -1 0 [B]0 0 -1  [/B] X2 
;END_ATTACHMENT
The remaining modules are left as an exercise. :)

:edit: Rotating it to the correct orientation will not guarantee that it will actually fit. From your screen shot it looks like it might be a bit too big.
 
So, to re-orient the module you need to adjust the last three numbers. In the case of BM201 the orientation vectors point along the X axis of the module. The need to point along the Z axis.

Thanks very much for the advice. I managed to get the module aligned properly, and with a tiny tweak on the position numbers I managed to make it sit neat in the payload bay, too - it wasn't too big, but it did sit a little bit high to begin with.

Thanks again!
 
I have a similar question regarding rotating attachment points

I have these parameters for an attachment of a robot arm onto a module.
DIR=(0.984,-0.275,0)
ROT=(0,0,1)

How would I rotate this attachment point 90 degrees counter-clockwise? I tried changing the ROT vectors but i cant for the life of me figure out what vector it needs to rotate to the left. Any help will be most appreciated.
 
Back
Top