Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
WeldFX Class Reference

This class controls the the welding gun FX and is a component of the welding gun prefab More...

Inheritance diagram for WeldFX:

Public Member Functions

void AdjustWeldingTransform (bool isWelding)
 Adjusts the position and rotation of the welding gun More...
 
void DisableMesh (float delay=0)
 
void EnableMesh (float delay=0)
 
void Play ()
 Plays this set of FX More...
 
void Reset ()
 Resets this effect group More...
 
void Stop ()
 Stops playing these effects More...
 
void UpdateGunAiming ()
 Updates aiming for the weld gun More...
 

Public Attributes

bool Active = false
 Are the effects in general active More...
 
Transform AimPivot
 Transform used to aim the laser towards the target part More...
 
KerbalEVA evaController
 The kerbal controller this weld gun is attached to More...
 
ParticleSystem Flare
 Flare effect object More...
 
bool IsFloating = false
 Is the Kerbal floating More...
 
float LaserDuration = 1.6f
 Duration of laser FX More...
 
bool LaserFXActive = false
 Are the laser effects active More...
 
LineRenderer LaserLine
 Laser done with the line renderer More...
 
float LaserOffset = 0.035f
 
float LightFadeInDamper = 0.5f
 
float LightFadeOutDamper = 1f
 
bool LightFXActive = false
 Are the light effects active More...
 
float MaxIntensity = 10
 
MeshRenderer mesh
 Weld gun Mesh Renderer More...
 
Transform RestTransform
 
float SpaceSparksSpeed = 0.3f
 
ParticleSystem Sparks
 Sparks effect object More...
 
float StartDelay = 1.1f
 Delay in seconds before enabling the effects More...
 
Transform WeldingTransform
 
Transform WeldingTransformFl
 
Light WeldLight
 Point light effect More...
 

Detailed Description

This class controls the the welding gun FX and is a component of the welding gun prefab

Member Function Documentation

void WeldFX.AdjustWeldingTransform ( bool  isWelding)
inline

Adjusts the position and rotation of the welding gun

void WeldFX.DisableMesh ( float  delay = 0)
inline
void WeldFX.EnableMesh ( float  delay = 0)
inline
void WeldFX.Play ( )
inline

Plays this set of FX

void WeldFX.Reset ( )
inline

Resets this effect group

void WeldFX.Stop ( )
inline

Stops playing these effects

void WeldFX.UpdateGunAiming ( )
inline

Updates aiming for the weld gun

Member Data Documentation

bool WeldFX.Active = false

Are the effects in general active

Transform WeldFX.AimPivot

Transform used to aim the laser towards the target part

KerbalEVA WeldFX.evaController

The kerbal controller this weld gun is attached to

ParticleSystem WeldFX.Flare

Flare effect object

bool WeldFX.IsFloating = false

Is the Kerbal floating

float WeldFX.LaserDuration = 1.6f

Duration of laser FX

bool WeldFX.LaserFXActive = false

Are the laser effects active

LineRenderer WeldFX.LaserLine

Laser done with the line renderer

float WeldFX.LaserOffset = 0.035f
float WeldFX.LightFadeInDamper = 0.5f
float WeldFX.LightFadeOutDamper = 1f
bool WeldFX.LightFXActive = false

Are the light effects active

float WeldFX.MaxIntensity = 10
MeshRenderer WeldFX.mesh

Weld gun Mesh Renderer

Transform WeldFX.RestTransform
float WeldFX.SpaceSparksSpeed = 0.3f
ParticleSystem WeldFX.Sparks

Sparks effect object

float WeldFX.StartDelay = 1.1f

Delay in seconds before enabling the effects

Transform WeldFX.WeldingTransform
Transform WeldFX.WeldingTransformFl
Light WeldFX.WeldLight

Point light effect


The documentation for this class was generated from the following file: