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.SynchronousDrive Class Reference
Inheritance diagram for VehiclePhysics.SynchronousDrive:
VehiclePhysics.Block

Public Member Functions

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

Public Attributes

float damping = 0.95f
 
float maxTorque = 100.0f
 
float targetRpm = 0.0f
 

Protected Member Functions

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

Properties

float angularVelocity [get]
 
float torque [get]
 
- 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.SynchronousDrive.CheckConnections ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.SynchronousDrive.EvaluateTorqueDownstream ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.SynchronousDrive.Initialize ( )
inlineprotectedvirtual

Reimplemented from VehiclePhysics.Block.

Member Data Documentation

float VehiclePhysics.SynchronousDrive.damping = 0.95f
float VehiclePhysics.SynchronousDrive.maxTorque = 100.0f
float VehiclePhysics.SynchronousDrive.targetRpm = 0.0f

Property Documentation

float VehiclePhysics.SynchronousDrive.angularVelocity
get
float VehiclePhysics.SynchronousDrive.torque
get

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