Docking ports : lost in vectors (again)...

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,279
Reaction score
3,248
Points
203
Location
Toulouse
I'm trying to get 4 radial boosters attached to a rocket core in a "X" fashion, meaning there is a 45° rotation. A bit like the engines of the X-wing in combat configuration, but evenly spaced.

How should I setup the docking ports definitions ? Let's use the config file context for more simplicity.

This is how my config file looks ; the issue are the direction and rotation parameters mentionned in "OrbiterConfig.pdf", page 25.

I know the current set of value is wrong ; but i've tried many things (I know that a 45° rotation should give 0.707107... vector components, but which ones ?).

Code:
; === Docking ports ===
BEGIN_DOCKLIST
1.94746  1.94746 0         1  0  0    0 -1 0
1.94746 -1.94746 0        -1  0  0    0 -1  0
-1.94746  1.94746 0         0  1  0    0  0  1
-1.94746 -1.94746 0         0 -1  0    0  0 -1
END_DOCKLIST

And my boosters look like this (the docking port is supposed to be on the "ventral" side).
Code:
; === Docking ports ===
BEGIN_DOCKLIST
0  -1.69928  -8.4681    1  0  0    0  1  0
END_DOCKLIST

Here's a little drawing for more clarity :

 
Last edited:

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,279
Reaction score
3,248
Points
203
Location
Toulouse
Found a working solution after many tries. So for the core stage :

Code:
; === Docking ports ===
BEGIN_DOCKLIST
 0       0       22.2616   0  0  1    0 1 0
 1.94746 1.94746 -12.7866         0.707107  0.707107  0    0 0 1
-1.94746 1.94746 -12.7866        -0.707107  0.707107  0    0 0 1
 1.94746 -1.94746 -12.7866        0.707107 -0.707107  0    0 0 1
-1.94746 -1.94746 -12.7866       -0.707107 -0.707107  0    0 0 1
END_DOCKLIST

And for the boosters :

Code:
; === Docking ports ===
BEGIN_DOCKLIST
 0  -1.69928  -8.4681    0  -1  0    0  0  1
END_DOCKLIST
 
Top