Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
VehiclePhysics.VPDamage Class Reference
Inheritance diagram for VehiclePhysics.VPDamage:
VehiclePhysics.VehicleBehaviour

Public Member Functions

override void OnDisableComponent ()
 
override void OnEnableComponent ()
 
void Repair ()
 
- Public Member Functions inherited from VehiclePhysics.VehicleBehaviour
void DebugLogError (string message)
 
void DebugLogWarning (string message)
 
virtual void FixedUpdateVehicle ()
 
virtual int GetUpdateOrder ()
 
virtual void OnDisableVehicle ()
 
virtual void OnEnableVehicle ()
 
virtual void OnEnterPause ()
 
virtual void OnLeavePause ()
 
virtual void OnReposition ()
 
virtual void UpdateVehicle ()
 
virtual void UpdateVehicleSuspension ()
 

Public Attributes

MeshCollider[] colliders = new MeshCollider[0]
 
float damageRadius = 1.0f
 
bool enableRepairKey = true
 
float maxDisplacement = 0.5f
 
float maxNodeRotation = 14.0f
 
float maxVertexFracture = 0.1f
 
MeshFilter[] meshes = new MeshFilter[0]
 
float minVelocity = 1.0f
 
float multiplier = 1.0f
 
float nodeDamageRadius = 0.5f
 
float nodeRotationRate = 10.0f
 
Transform[] nodes = new Transform[0]
 
KeyCode repairKey = KeyCode.R
 
float vertexRepairRate = 0.1f
 

Properties

float colliderDamage [get]
 
bool isRepairing [get]
 
float meshDamage [get]
 
float nodeDamage [get]
 
- Properties inherited from VehiclePhysics.VehicleBehaviour
VehicleBase vehicle [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from VehiclePhysics.VehicleBehaviour
virtual VehicleBase GetVehicle ()
 

Member Function Documentation

override void VehiclePhysics.VPDamage.OnDisableComponent ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

override void VehiclePhysics.VPDamage.OnEnableComponent ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

void VehiclePhysics.VPDamage.Repair ( )
inline

Member Data Documentation

MeshCollider [] VehiclePhysics.VPDamage.colliders = new MeshCollider[0]
float VehiclePhysics.VPDamage.damageRadius = 1.0f
bool VehiclePhysics.VPDamage.enableRepairKey = true
float VehiclePhysics.VPDamage.maxDisplacement = 0.5f
float VehiclePhysics.VPDamage.maxNodeRotation = 14.0f
float VehiclePhysics.VPDamage.maxVertexFracture = 0.1f
MeshFilter [] VehiclePhysics.VPDamage.meshes = new MeshFilter[0]
float VehiclePhysics.VPDamage.minVelocity = 1.0f
float VehiclePhysics.VPDamage.multiplier = 1.0f
float VehiclePhysics.VPDamage.nodeDamageRadius = 0.5f
float VehiclePhysics.VPDamage.nodeRotationRate = 10.0f
Transform [] VehiclePhysics.VPDamage.nodes = new Transform[0]
KeyCode VehiclePhysics.VPDamage.repairKey = KeyCode.R
float VehiclePhysics.VPDamage.vertexRepairRate = 0.1f

Property Documentation

float VehiclePhysics.VPDamage.colliderDamage
get
bool VehiclePhysics.VPDamage.isRepairing
get
float VehiclePhysics.VPDamage.meshDamage
get
float VehiclePhysics.VPDamage.nodeDamage
get

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