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

Public Member Functions

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

Public Attributes

float debug1
 
float debug2
 
float debug3
 
Vector2 F
 
Vector2 Fext
 
float grip
 
bool isResting
 
float L
 
float load
 
Vector2 m_adherentForce
 
Vector2 m_adherentSlip
 
float m_forwardSlip
 
bool m_isAdherent
 
Vector2 m_tireForce
 
float m_Ty
 
float mass
 
Vector2 P
 
float radius
 
float T
 
TireFriction tireFriction
 
float Tr
 
Vector2 V
 

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 brakeTorque [get]
 
TireFriction.ContactPatch contactPatch [get]
 
float driveTorque [get]
 
float inertia [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

float VehiclePhysics.Wheel.AddBrakeTorque ( float  brakeTorque)
inline
override void VehiclePhysics.Wheel.ComputeStateUpstream ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.Wheel.EvaluateTorqueDownstream ( )
inlinevirtual

Reimplemented from VehiclePhysics.Block.

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

Reimplemented from VehiclePhysics.Block.

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

Reimplemented from VehiclePhysics.Block.

override void VehiclePhysics.Wheel.Initialize ( )
inlineprotectedvirtual

Reimplemented from VehiclePhysics.Block.

void VehiclePhysics.Wheel.RecalculateConstants ( )
inline
void VehiclePhysics.Wheel.RecalculateVars ( )
inline
void VehiclePhysics.Wheel.ResetBrakeTorque ( )
inline
override void VehiclePhysics.Wheel.SetState ( State  S)
inlinevirtual

Reimplemented from VehiclePhysics.Block.

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

Reimplemented from VehiclePhysics.Block.

Member Data Documentation

float VehiclePhysics.Wheel.debug1
float VehiclePhysics.Wheel.debug2
float VehiclePhysics.Wheel.debug3
Vector2 VehiclePhysics.Wheel.F
Vector2 VehiclePhysics.Wheel.Fext
float VehiclePhysics.Wheel.grip
bool VehiclePhysics.Wheel.isResting
float VehiclePhysics.Wheel.L
float VehiclePhysics.Wheel.load
Vector2 VehiclePhysics.Wheel.m_adherentForce
Vector2 VehiclePhysics.Wheel.m_adherentSlip
float VehiclePhysics.Wheel.m_forwardSlip
bool VehiclePhysics.Wheel.m_isAdherent
Vector2 VehiclePhysics.Wheel.m_tireForce
float VehiclePhysics.Wheel.m_Ty
float VehiclePhysics.Wheel.mass
Vector2 VehiclePhysics.Wheel.P
float VehiclePhysics.Wheel.radius
float VehiclePhysics.Wheel.T
TireFriction VehiclePhysics.Wheel.tireFriction
float VehiclePhysics.Wheel.Tr
Vector2 VehiclePhysics.Wheel.V

Property Documentation

float VehiclePhysics.Wheel.angularVelocity
get
float VehiclePhysics.Wheel.brakeTorque
get
TireFriction.ContactPatch VehiclePhysics.Wheel.contactPatch
get
float VehiclePhysics.Wheel.driveTorque
get
float VehiclePhysics.Wheel.inertia
get

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