Problem Spacecraft 3 Vessel has upside down landing points

jedimaster1214

CDR-LMP-CMP
Joined
Jul 23, 2009
Messages
385
Reaction score
0
Points
16
Okay, here's my project so far...

I've tried my hand at modeling, and I'm using spacecraft3 to start with...

Think of it as an ISS Module with an engine, and landing gear for non-atmospheric flight...

The only problem is, my ship is upside down when landed.:facepalm:

Here's the SC3 code and a screenshot... Is there something i'm missing, or is there something else???

Code:
[CONFIG]
MESHNAME="emerlnch1"
SIZE=15
CAMERA=(0,0,4.8)
EMPTY_MASS=12000
FUEL_MASS=5000
MAIN_THRUST=2.16e5
ATTITUDE_THRUST=5000
ISP=50000
PMI=(8.98, 8.96, 2.09)
CW_Z_POS=0.09
CW_Z_NEG=0.09
CW_X=2.
CW_Y=1.4
CROSS_SECTION=(27.73, 27.41, 11.87)
COG=-5.5
PITCH_MOMENT_SCALE=0.00005
BANK_MOMENT_SCALE=0.00005
ROT_DRAG=(0.10,0.10,0.10)
MAIN_PSTREAM1=DGContrail
MAIN_PSTREAM2=DGMain
LAUNCH_PT1=(0, -4, -5.5)
LAUNCH_PT2=(4, 0, -5.5)
LAUNCH_PT3=(0, 4, -5.5)
LAND_PT1=(0, -4, -5.5)
LAND_PT2=(4, 0, -5.5)
LAND_PT3=(0, 4, -5.5)
LAND_PT4=(-4, 0, -5.5)
[DOCK_0]
POS=(0,0, 5.4)
DIR=(0,0,1)
ROT=(0,1,0)
[EX_MAIN_0]
OFF=(0,0,-4.600)
DIR=(0,0,-1)
LENGTH=10
WIDTH=1
[TEXTURE_LIST]
TEX_1=Exhaust_atrcs
[PARTICLESTREAM_1]
NAME=DGContrail
SRCSIZE=8.0
SRCRATE=3
V0=150.0
SRCSPREAD=0.3
LIFETIME=3.5
GROWTHRATE=4
ATMSLOWDOWN=3.0
LTYPE=DIFFUSE
LEVELMAP=LVL_PSQRT
LMIN=0
LMAX=2
ATMSMAP=ATM_PLOG
AMIN=1e-4
AMAX=1
[PARTICLESTREAM_2]
NAME=DGMain
SRCSIZE=1.0
SRCRATE=10
V0=150.0
SRCSPREAD=0.1
LIFETIME=0.2
GROWTHRATE=16
ATMSLOWDOWN=1.0
LTYPE=EMISSIVE
LEVELMAP=LVL_SQRT
LMIN=0
LMAX=1
ATMSMAP=ATM_PLOG
AMIN=1e-5
AMAX=0.1

Also, no my LAND_PT's aren't wrong, that's where the center of the 'feet' are in the mesh...
 

Attachments

  • downsideup.jpg
    downsideup.jpg
    117.1 KB · Views: 9
Last edited by a moderator:
I've had this happen before, though while using C++ since I've never developed with SC3. Take a look at the settouchdownpoints function in the API reference. There's a specific order at work here which defines the vessel's upward direction while landed.
 
Last edited:
Hmmm... I see what you mean. I found what you're talking about on pg. 349, and it makes sense. I'll try re-orderering the LAND_PT's until it's rightside up...

Here's the screenshot i was talking about, i didn't see it in the original post for some reason....
 

Attachments

  • downsideup.jpg
    downsideup.jpg
    117.1 KB · Views: 18
Well, you've got the vessel's local upward vector inverted, but it does also look like the vertical position component is inverted too. I'd flip the signs around on them and see if at least the points pop into where your vessel's feet actually are.
 
Ok, i got rid of LAUNCH_PT's, and switched LAND_PT 1 with 2, and 3 with 4, and also changed all of the LAND_PT's Z-Axis' from -5.5 to 5.5. That inverted the vessels upward vector. And it points up now!
I also docked with an xr2 for size reference...
 

Attachments

  • upsideup.jpg
    upsideup.jpg
    129.9 KB · Views: 11
  • upsidexr2.jpg
    upsidexr2.jpg
    50.5 KB · Views: 14
Back
Top