Question How to stop payload clipping SSV

jamest

New member
Joined
Aug 10, 2022
Messages
27
Reaction score
4
Points
3
Location
somewhere
I have added the coordinates to the cfg file but the attachment point is not showing up in game. im not sure how to add the dx, dy, dz, rx, ry, rz and id parts.
here's what I've got so far.





; === Configuration file for vessel class Test ===
ClassName = Node6
Module = Project-Outposts\Node6
EditorModule = Node6
ImageBmp = Images\Vessels\Project-Outposts\Node-6.bmp

; === Docking ports ===
BEGIN_DOCKLIST
0.0 0.045 3.71 0 0 1 0 1 0 130
0.0 0.045 -3.71 0 0 -1 0 1 0 131
END_DOCKLIST

; === Attachment Points ===
BEGIN_ATTACHMENT
C -1.129 1.959 0.0 0.5 -0.866 0.0 0.0 0.0 -1.0 UTL ; 0
C 1.129 1.959 0.0 -0.5 -0.866 0.0 0.0 0.0 -1.0 UTL ; 1
C -1.05 -1.88 0.0 0.5 0.866 0.0 0.0 0.0 -1.0 UTL ; 2
C 1.05 -1.88 0.0 -0.5 0.866 0.0 0.0 0.0 -1.0 UTL ; 3
C -1.129 1.959 0.43 0.5 -0.866 0.0 0.0 0.0 -1.0 UTS ; 4
C -1.129 1.959 -0.51 0.5 -0.866 0.0 0.0 0.0 1.0 UTS ; 5
C 1.129 1.959 0.43 -0.5 -0.866 0.0 0.0 0.0 -1.0 UTS ; 6
C 1.129 1.959 -0.51 -0.5 -0.866 0.0 0.0 0.0 1.0 UTS ; 7
C -1.09 -1.88 0.43 0.5 0.866 0.0 0.0 0.0 -1.0 UTS ; 8
C -1.09 -1.88 -0.51 0.5 0.866 0.0 0.0 0.0 1.0 UTS ; 9
C 1.08 -1.88 0.43 -0.5 0.866 0.0 0.0 0.0 -1.0 UTS ; 10
C 1.08 -1.88 -0.51 -0.5 0.866 0.0 0.0 0.0 1.0 UTS ; 11
P 0.0 -0.7 0.0 0.0 -1.0 0.0 0.0 0.0 1.0 XS ; 0 (SHUTTLE BAY)
P 2.21 0.51 2.48 1.0 0.0 0.0 0.0 1.0 0.0 GS ; 1 (SHUTLLE RMS Grapple)
P 2.21 0.51 -2.75 1.0 0.0 0.0 0.0 1.0 0.0 GS ; 2 (SHUTLLE RMS Grapple)
P -2.21 0.51 2.6 -1.0 0.0 0.0 0.0 1.0 0.0 GS ; 3 (SHUTLLE RMS Grapple)
P -2.21 0.51 -2.65 -1.0 0.0 0.0 0.0 1.0 0.0 GS ; 4 (SHUTLLE RMS Grapple)
P 0.05 -2.2 -0.32 0.0 -1.0 0.0 0.0 0.0 1.0 GS ; 5 (SHUTLLE RMS Grapple)
P 0.00 -0.05 0.0 0 0 -1 0 -1 0 GS ; 1 (SHUTLLE RMS Grapple)
P 0.006692 0.003265 2.336
END_ATTACHMENT
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,636
Reaction score
2,613
Points
203
Location
Dallas, TX
P 0.006692 0.003265 2.336 The P means it is a child attachment. The RMS attachment is a Parent. The other numbers are position. But you need a direction and rotation. For the RMS to attach it needs an ID of GS.
try P 0.006692 0.003265 2.336 0 0 -1 0 -1 0 GS ; 1 (SHUTLLE RMS Grapple)
 

jamest

New member
Joined
Aug 10, 2022
Messages
27
Reaction score
4
Points
3
Location
somewhere
P 0.006692 0.003265 2.336 0 0 -1 0 -1 0 GS ; 1 (SHUTLLE RMS Grapple)
still no attachment point.

I unlatched the payload and flipped it over and I was able to grapple the rms to the keel attachment point, so its definitely something to do with the pdgf
 

Attachments

  • 22.10.14 18-56-18 Endeavour.jpg
    22.10.14 18-56-18 Endeavour.jpg
    28.4 KB · Views: 5

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,877
Reaction score
2,869
Points
188
Website
github.com
The direction and rotation vectors of the attachments don't seem to be correct: all the GFs are pointing in a direction 90º or 180º the PLB one, which is wrong as they are located ~135º away.

Also, try the id "GF" in the GF attachments. Currently I have "G" both in the code and in the manual, but it is working with "GF" in the PFTA, and it probably makes more sense to have "GF". I'll eventually fix the code (busy with other things right now) to only attach to "GF", and maybe dump a log message when the user tries another attachment, just so there is some info on why it didn't attach.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,636
Reaction score
2,613
Points
203
Location
Dallas, TX
I ran the Atlantis test scenario. Added the node and attached via manager and get this:
NODE2B:Node-2B STATUS Orbiting Earth RPOS -303735.237 -973758.362 6646853.550 RVEL -5014.8590 -5739.1025 -1075.1714 AROT 168.345 -5.614 -42.015 VROT -0.0651 -0.0003 -0.0185 ATTACHED 5:0,Atlantis AFCMODE 7 IDS 0:130 10 1:131 10 NAVFREQ 0 0 STATE 0 END
 

Attachments

  • NODE2B.jpg
    NODE2B.jpg
    87.9 KB · Views: 4

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,877
Reaction score
2,869
Points
188
Website
github.com
In the cfg file? I tried that, but still no grapple point.
That is probably because of this:
The direction and rotation vectors of the attachments don't seem to be correct: all the GFs are pointing in a direction 90º or 180º the PLB one, which is wrong as they are located ~135º away.
 

jamest

New member
Joined
Aug 10, 2022
Messages
27
Reaction score
4
Points
3
Location
somewhere
The direction and rotation vectors of the attachments don't seem to be correct: all the GFs are pointing in a direction 90º or 180º the PLB one, which is wrong as they are located ~135º away.
How do I change this?
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,636
Reaction score
2,613
Points
203
Location
Dallas, TX
A couple of things. Technically the RMS couldn't grapple as there are no RMS grapple devices. It seems that the whole vessel is upside down. The textures are facing down rather than up.

That aside. You change the pos, direction, and rotation in the cfg.

This my sts 2016 but the concept is the same. Here the rms is attached to the Keel attachment.
P 0.0 -0.7 0.0 0.0 -1.0 0.0 0.0 0.0 1.0 XS ; 0 (SHUTTLE BAY)
Direction is -Y and rotation is +Z
I made a new attachment which is on top of the node
P 0 2.449 0 0.0 1.0 0.0 0.0 0.0 1.0 GS ; 6 (SHUTTLE BAY)

I use meshwizard to see the mesh and decide on attachment points.

Another tool is VesselBuilder. There you can visually see the attachment points and adjust as needed.
 

Attachments

  • node2battach2.jpg
    node2battach2.jpg
    54.9 KB · Views: 4
  • node2battach1.jpg
    node2battach1.jpg
    44.7 KB · Views: 4

jamest

New member
Joined
Aug 10, 2022
Messages
27
Reaction score
4
Points
3
Location
somewhere
A couple of things. Technically the RMS couldn't grapple as there are no RMS grapple devices. It seems that the whole vessel is upside down. The textures are facing down rather than up.

That aside. You change the pos, direction, and rotation in the cfg.

This my sts 2016 but the concept is the same. Here the rms is attached to the Keel attachment.
P 0.0 -0.7 0.0 0.0 -1.0 0.0 0.0 0.0 1.0 XS ; 0 (SHUTTLE BAY)
Direction is -Y and rotation is +Z
I made a new attachment which is on top of the node
P 0 2.449 0 0.0 1.0 0.0 0.0 0.0 1.0 GS ; 6 (SHUTTLE BAY)

I use meshwizard to see the mesh and decide on attachment points.

Another tool is VesselBuilder. There you can visually see the attachment points and adjust as needed
Is there any way of adding the PDGF onto the node2b mesh? i tried doing it in blender, but I couldn't export it as a mesh file for some reason.

Thanks for your help
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,877
Reaction score
2,869
Points
188
Website
github.com
There is some funny business on with the attachments in the payload module, as I grappled on the port side and it flipped the module around to end up grappled on the starboard side... Perhaps it's a good idea to play with vessels that don't move the attachments around. 🤷‍♂️
Anyway, here is one attachment for the RMS:
Code:
-1.207938 2.114016 -0.488343          -0.5 0.866025 0.0                    0.0 0.0 1.0
^^ position (not accurate)                         ^^ direction (out from the module)         ^^ rotation (towards the target of the GF)
Judging from the flip it did, the x axis coordinates should probably have their signs switched, to place the attachment on the starboard side.
 
Top