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

Public Member Functions

override bool CheckConnections ()
 
override void ComputeStateUpstream ()
 
override void EvaluateTorqueDownstream ()
 
override void GetState (ref State S)
 
override void GetSubstepDerivative (ref Derivative D)
 
override void PreStep ()
 
void Reset ()
 
override void SetState (State S)
 
override void SetSubstepState (State S)
 
- Public Member Functions inherited from VehiclePhysics.Block
 Block ()
 
void CountConnections ()
 
bool DisconnectInput (int inputSlot)
 
bool DisconnectOutput (int outputSlot)
 

Public Attributes

float damping = 1.0f
 
float inertia = 1.0f
 
float lockRatio = 1.0f
 
float maxRpm = 10.0f
 
float torque = 0.0f
 
float viscousCouplingRate = 100.0f
 
float viscousLockedRatio = 0.95f
 

Protected Member Functions

override void Initialize ()
 
- Protected Member Functions inherited from VehiclePhysics.Block
void SetInputs (int count)
 
void SetOutputs (int count)
 

Properties

float rpm [get]
 
float Tlock [get, set]
 
- Properties inherited from VehiclePhysics.Block
int connectedInputs [get]
 
int connectedOutputs [get]
 
bool hasInputs [get]
 
bool hasOutputs [get]
 
Connection[] inputs [get]
 
Connection[] outputs [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from VehiclePhysics.Block
static bool Connect (Block inputUnit, int inputSlot, Block outputUnit, int outputSlot)
 
static bool Connect (Block inputUnit, Block outputUnit)
 
static bool Connect (Block inputUnit, Block outputUnit, int outputSlot)
 
static bool Connect (params Block[] blocks)
 
- Static Public Attributes inherited from VehiclePhysics.Block
static float RpmToW = (2.0f * Mathf.PI) / 60.0f
 
static float WToRpm = 60.0f / (2.0f * Mathf.PI)
 

Member Function Documentation

override bool VehiclePhysics.InertialFlywheel.CheckConnections ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.ComputeStateUpstream ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.EvaluateTorqueDownstream ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.GetState ( ref State  S)
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.GetSubstepDerivative ( ref Derivative  D)
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.Initialize ( )
inlineprotectedvirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.PreStep ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

void VehiclePhysics.InertialFlywheel.Reset ( )
inline
override void VehiclePhysics.InertialFlywheel.SetState ( State  S)
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.InertialFlywheel.SetSubstepState ( State  S)
inlinevirtual

Reimplemented from VehiclePhysics.Block.

Member Data Documentation

float VehiclePhysics.InertialFlywheel.damping = 1.0f
float VehiclePhysics.InertialFlywheel.inertia = 1.0f
float VehiclePhysics.InertialFlywheel.lockRatio = 1.0f
float VehiclePhysics.InertialFlywheel.maxRpm = 10.0f
float VehiclePhysics.InertialFlywheel.torque = 0.0f
float VehiclePhysics.InertialFlywheel.viscousCouplingRate = 100.0f
float VehiclePhysics.InertialFlywheel.viscousLockedRatio = 0.95f

Property Documentation

float VehiclePhysics.InertialFlywheel.rpm
get
float VehiclePhysics.InertialFlywheel.Tlock
getset

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