Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Expansions.Serenity.RobotArmFX.RobotArmFXDrill Class Reference
Inheritance diagram for Expansions.Serenity.RobotArmFX.RobotArmFXDrill:
Expansions.Serenity.RobotArmFX.RobotArmScannerFX IConfigNode

Public Member Functions

override void Load (ConfigNode node)
 
override void OnEffectStart ()
 Called to set up effects just as animation starts. More...
 
override void OnEffectStop ()
 Called to stop effects just as animation ends or if there's an problem and the arm has to retract in the middle of the animation. More...
 
override void OnStart (Part part)
 Called to Initialize things when the RobotArm is started. More...
 
override void OnUpdate (float animationTime, float distanceFromSurface, Vector3 instrumentTargetPosition)
 Called to update effects as the animation plays. More...
 
 RobotArmFXDrill ()
 Constructor. More...
 
override void Save (ConfigNode node)
 
- Public Member Functions inherited from Expansions.Serenity.RobotArmFX.RobotArmScannerFX
 RobotArmScannerFX ()
 Constructor. More...
 

Public Attributes

string drillBaseTransformName = "DrillBaseTransform"
 Name of the transform to use to start the raycasts for the drill VFX. More...
 
string drillEffectTransformName = "DrillParticles"
 Name of the transform on which to find the drill VFX. More...
 
string drillTipTransformName = "DrillHeadTransform"
 Name of the transform to use to end the raycasts for the drill VFX. More...
 
- Public Attributes inherited from Expansions.Serenity.RobotArmFX.RobotArmScannerFX
string className = string.Empty
 Class name of the effect to be instantiated. More...
 
float effectStartTime = 0
 Start time of the effect in the animation timescale. More...
 
float effectStopTime = 1
 Stop time of the effect in the animation timescale. More...
 

Protected Attributes

Transform drillBaseTransform
 Transform to use to start the raycasts for the drill VFX. More...
 
Transform drillEffectTransform
 Transform on which to find the drill VFX. More...
 
List< KSPParticleEmitterdrillImpactParticleEmitters = new List<KSPParticleEmitter>()
 Drill VFX. More...
 
Transform drillTipTransform
 Transform to use to end the raycasts for the drill VFX. More...
 
RaycastHit hitInfo
 Used to store raycast results and avoid memory churn. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Expansions.Serenity.RobotArmFX.RobotArmScannerFX
static RobotArmScannerFX CreateInstanceOfRobotArmScannerFX (string className)
 Creates a new part module adjuster. More...
 
- Properties inherited from Expansions.Serenity.RobotArmFX.RobotArmScannerFX
bool IsReady [get, set]
 Is the effect ready to go. More...
 
Part Part [get, set]
 

Constructor & Destructor Documentation

Expansions.Serenity.RobotArmFX.RobotArmFXDrill.RobotArmFXDrill ( )
inline

Constructor.

Member Function Documentation

override void Expansions.Serenity.RobotArmFX.RobotArmFXDrill.Load ( ConfigNode  node)
inlinevirtual
override void Expansions.Serenity.RobotArmFX.RobotArmFXDrill.OnEffectStart ( )
inlinevirtual

Called to set up effects just as animation starts.

Implements Expansions.Serenity.RobotArmFX.RobotArmScannerFX.

override void Expansions.Serenity.RobotArmFX.RobotArmFXDrill.OnEffectStop ( )
inlinevirtual

Called to stop effects just as animation ends or if there's an problem and the arm has to retract in the middle of the animation.

Implements Expansions.Serenity.RobotArmFX.RobotArmScannerFX.

override void Expansions.Serenity.RobotArmFX.RobotArmFXDrill.OnStart ( Part  part)
inlinevirtual

Called to Initialize things when the RobotArm is started.

Parameters
partPart that this effect will be played on.

Reimplemented from Expansions.Serenity.RobotArmFX.RobotArmScannerFX.

override void Expansions.Serenity.RobotArmFX.RobotArmFXDrill.OnUpdate ( float  animationTime,
float  distanceFromSurface,
Vector3  instrumentTargetPosition 
)
inlinevirtual

Called to update effects as the animation plays.

Parameters
animationTimeTime that has passed for the scan animation.
distanceFromSurfaceDistance that the scanner head will stop at from the surface.
instrumentTargetPositionTarget position that the instrument should be pointing at.

Implements Expansions.Serenity.RobotArmFX.RobotArmScannerFX.

override void Expansions.Serenity.RobotArmFX.RobotArmFXDrill.Save ( ConfigNode  node)
inlinevirtual

Member Data Documentation

Transform Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillBaseTransform
protected

Transform to use to start the raycasts for the drill VFX.

string Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillBaseTransformName = "DrillBaseTransform"

Name of the transform to use to start the raycasts for the drill VFX.

Transform Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillEffectTransform
protected

Transform on which to find the drill VFX.

string Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillEffectTransformName = "DrillParticles"

Name of the transform on which to find the drill VFX.

List<KSPParticleEmitter> Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillImpactParticleEmitters = new List<KSPParticleEmitter>()
protected

Drill VFX.

Transform Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillTipTransform
protected

Transform to use to end the raycasts for the drill VFX.

string Expansions.Serenity.RobotArmFX.RobotArmFXDrill.drillTipTransformName = "DrillHeadTransform"

Name of the transform to use to end the raycasts for the drill VFX.

RaycastHit Expansions.Serenity.RobotArmFX.RobotArmFXDrill.hitInfo
protected

Used to store raycast results and avoid memory churn.


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