// Kerbal Space Program - Part Config
// MMI.K Miner 01

PART
{
// --- general parameters ---
name = kethane_radialDrill
module = Part
author = Dani-Sang | Kulesz

// --- asset parameters ---
mesh = model.mu
scale = 0.1


// --- node definitions ---
node_attach = -1.0, 0.0, 0.0, 1.0, 0.0, 0.0


// --- editor parameters ---
cost = 2350
category = -1
subcategory = 0
title = KE-X130 External Drilling Unit
manufacturer = Mechanical Mouse Industries
description = This externally mounted housing contains a drill for extracting Kethane from the surface of a planet or moon.

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,1,0

// --- standard part parameters ---
mass = 1.0
dragModelType = default
maximum_drag = 0.001
minimum_drag = 0.001
angularDrag = 2
crashTolerance = 6
breakingForce = 50
breakingTorque = 50
maxTemp = 2900
fuelCrossFeed = False

MODULE
{
	name = KethaneExtractor
	PowerConsumption = 8
    Resource
    {
        Name = Kethane
        Rate = 1.25
    }
    HeadTransform = 3 Cyl
    TailTransform = 1 Cyl
    HeadOffset = 0.5
    TailOffset = 0.5
}

MODULE
{
    name = KethaneDrillAnimatorLegacy
}

MODULE
{
    name = KethaneParticleEmitter
    Label = gas

    ColorAnimation1 = 0.02,  0.025,  0.02
    ColorAnimation2 = 0.02,  0.025,  0.02
    ColorAnimation3 = 0.015, 0.018,  0.015
    ColorAnimation4 = 0.015, 0.018,  0.015
    ColorAnimation5 = 0, 0, 0

    ShaderName = Particles/Additive
    TextureName = Kethane/smoke

    Emit = False
    MaxParticleSize = 10
    UseWorldSpace = True

    EmitterScale = 0.5, 0.5, 0.5
    LocalVelocity = 0, 4, 0
    RandomVelocity = 3, 3, 3

    MaxEmission = 20
    MinEmission = 0
    MinEnergy = 1
    MaxSize = 2
    MinSize = 1

    AngularVelocity = 5
    RandomAngularVelocity = 15
    RandomRotation = True
}

MODULE
{
    name = KethaneParticleDynamics
    Emitter = gas
    DampingPressureExponent = -2.3
    GravityConstant = 1
    GravityPressure = -1.4
    MaxEnergyConstant = 5
    MaxEnergyPressure = 5
    RandomForcePressure = 8, 8, 8
    SizeGrowConstant = 0.25
    SizeGrowPressureExponent = -2.7
}

MODULE
{
    name = KethaneParticleEmitter
    Label = sparks

    ColorAnimation1 = 0.8, 0.8, 0.8
    ColorAnimation2 = 0.8, 0.8, 0.8
    ColorAnimation3 = 0.8, 0.8, 0.8
    ColorAnimation4 = 0.6517648, 0.3835294, 0.2023529
    ColorAnimation5 = 0, 0, 0

    ShaderName = Particles/Additive
    TextureName = Kethane/mote

    Emit = False
    MaxParticleSize = 1
    UseWorldSpace = True

    EmitterScale = 0.325, 0, 0.325
    LocalVelocity = 0, 5, 0
    RandomVelocity = 1.5, 3.5, 1.5

    MaxEmission = 1000
    MinEmission = 500
    MinEnergy = 0.1
    MaxSize = 0.02
    MinSize = 0.01

    RenderMode = Stretch
    VelocityScale = 0.08
}

MODULE
{
    name = KethaneParticleDynamics
    Emitter = sparks
    GravityConstant = 1
    MaxEnergyConstant = 0.2
    SizeGrowConstant = -1
}

}
