I have created a new Wing in Blender, it has a texture and collision mesh also. However when I write the config file and load it into the game, the Wing doesn't attach correctly. It attaches in the middle of the Wing and at an Angle. When I created the Model/Mesh in Blender, I made sure the location was set to "0" on all Axis.
This is my Config (cfg) file:
Also, I commented out the "MODEL" part because my part wouldn't show up in-game if I use "MODEL", so I had to use "mesh" for the part to show in-game.
PART
{
// --- general parameters ---
name = ttg_aero_wing
module = Part
author = TheTechGenius
// --- asset parameters ---
//MODEL
//{
//model = ttgAeroWing.mu
//texture = ttgAeroWing.mbm
//}
mesh = ttgAeroWing.mu
scale = 3
rescaleFactor = 3
// --- editor parameters ---
TechRequired = start
entryCost = 0
cost = 6200
category = Aero
subcategory = 0
title = TTG Stealth Wing
manufacturer = TTG Industries
description = The new TTG Stealth Wing is the first of its kind, its said to still be in its testing phases.
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,1,1
// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0
// --- standard part parameters ---
mass = 0.4148
dragModelType = default
maximum_drag = 0.02
minimum_drag = 0.02
angularDrag = 2
crashTolerance = 12
breakingForce = 400
breakingTorque = 600
maxTemp = 4800
explosionPotential = 0.1
fuelCrossFeed = True
bulkheadProfiles = srf
heatConductivity = 0.06 // half default
emissiveConstant = 0.95
thermalMassModifier = 4.0
MODULE
{
name = ModuleControlSurface
useInternalDragModel = True
dragCoeff = 0.2
deflectionLiftCoeff = 3.6071
ctrlSurfaceRange = 30
ctrlSurfaceArea = 0.15
//actuatorSpeed = 20
transformName = obj_ctrlSrf
}
RESOURCE
{
name = LiquidFuel
amount = 0 //empty by default
maxAmount = 600
}
}