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 | List of all members
VehiclePhysics.VPVehicleController Class Reference
Inheritance diagram for VehiclePhysics.VPVehicleController:
VehiclePhysics.VehicleBase

Public Member Functions

override object GetInternalObject (Type type)
 
float GetOptimalGearShiftRatio ()
 
float GetWheelFinalRatio (int wheelIndex, int gear=0)
 
- Public Member Functions inherited from VehiclePhysics.VehicleBase
void AddWheelBrakeTorque (int wheelIndex, float torque)
 
void DebugLogError (string message)
 
void DebugLogWarning (string message)
 
virtual int GetAxleCount ()
 
Type[] GetSolverBlockTypes ()
 
SolverState GetSolverState ()
 
VehicleStateVars GetVehicleStateVars ()
 
Vector2 GetWheelAdherentSlip (int wheelIndex)
 
float GetWheelAngularVelocityForSlip (int wheelIndex, float slip)
 
virtual int GetWheelIndex (int axle, WheelPos position=WheelPos.Default)
 
Vector3 GetWheelLocalPosition (VPWheelCollider wheelCol)
 
Vector2 GetWheelPeakSlip (int wheelIndex)
 
float GetWheelRadius (int wheelIndex)
 
virtual int GetWheelsInAxle (int axle)
 
WheelStateVars[] GetWheelStateVars ()
 
TireFriction GetWheelTireFriction (int wheelIndex)
 
void NotifyCollidersChanged ()
 
void OnCollision (Collision collision, bool isCollisionEnter)
 
void RegisterVehicleBehaviour (VehicleBehaviour vb)
 
void Reposition (Vector3 position, Quaternion rotation)
 
void SetVehicleStateVars (VehicleStateVars stateVars)
 
void SetWheelRadius (int wheelIndex, float radius)
 
void SetWheelStateVars (WheelStateVars[] stateVars)
 
void SetWheelTireFriction (int wheelIndex, TireFriction friction)
 
void SetWheelTireFrictionMultiplier (int wheelIndex, float frictionMultiplier)
 
void SingleStep ()
 
void UnregisterVehicleBehaviour (VehicleBehaviour vb)
 

Public Attributes

Brakes.AbsSettings antiLock = new Brakes.AbsSettings()
 
AntiSpin.Settings antiSpin = new AntiSpin.Settings()
 
VPAxle[] axles
 
Brakes.Settings brakes = new Brakes.Settings()
 
Differential.Settings centerDifferential = new Differential.Settings()
 
Engine.ClutchSettings clutch = new Engine.ClutchSettings()
 
Differential.Settings differential = new Differential.Settings()
 
Driveline.Settings driveline = new Driveline.Settings()
 
Engine.Settings engine = new Engine.Settings()
 
float engineReactionFactor = 1.0f
 
Gearbox.Settings gearbox = new Gearbox.Settings()
 
Inertia.Settings inertia = new Inertia.Settings()
 
Differential.Settings interAxleDifferential = new Differential.Settings()
 
float maxSubsystemsEnergy = 100000.0f
 
float parkModeReactionFactor = 0.95f
 
Retarder.Settings retarder = new Retarder.Settings()
 
SpeedControl.Settings speedControl = new SpeedControl.Settings()
 
StabilityControl.Settings stabilityControl = new StabilityControl.Settings()
 
Steering.Settings steering = new Steering.Settings()
 
SteeringAids.Settings steeringAids = new SteeringAids.Settings()
 
TireFriction tireFriction = new TireFriction()
 
TorqueSplitter.Settings torqueSplitter = new TorqueSplitter.Settings()
 
TractionControl.Settings tractionControl = new TractionControl.Settings()
 
- Public Attributes inherited from VehiclePhysics.VehicleBase
bool accurateSuspensionForces = true
 
bool advancedSuspensionDamper = false
 
Transform centerOfMass
 
bool contactAngleAffectsTireForce = true
 
DataBus data = new DataBus()
 
bool disableContactProcessing = false
 
KSPWheelGravity gravity = new KSPWheelGravity()
 
float impactInterval = 0.2f
 
float impactIntervalRandom = 0.4f
 
float impactMinSpeed = 2.0f
 
float impactThreeshold = 0.6f
 
bool inhibitWheelSleep = false
 
int integrationSteps = 4
 
bool integrationUseRK4 = false
 
bool invertVisualWheelSpinDirection = false
 
float minimumdownForce
 
Action onBeforeIntegrationStep
 
Action onBeforeUpdateBlocks
 
Action onImpact
 
Action onPreDynamicsStep
 
Action onPreVisualUpdate
 
Action onRawCollision
 
float scaleFactor = 1.0f
 
bool showContactGizmos = true
 
float suspensionDamperLimitFactor = 2.0f
 
float suspensionForceSharpness = 5f
 
bool suspensionForceSmoothing = true
 
float tireForceSharpness = 5f
 
bool tireForceSmoothing = true
 
float tireImpulseRatio = 0.5f
 
bool tireSideDeflection = false
 
float tireSideDeflectionRate = 10.0f
 
VehicleSleepCriteria vehicleSleepCriteria = VehicleSleepCriteria.Strict
 
float wheelSleepVelocity = 0.2f
 

Protected Member Functions

override void DoUpdateBlocks ()
 
override void DoUpdateData ()
 
override void OnInitialize ()
 
- Protected Member Functions inherited from VehiclePhysics.VehicleBase
virtual void OnFinalize ()
 
virtual void OnUpdate ()
 
void SetNumberOfWheels (int numberOfWheels)
 

Additional Inherited Members

- Public Types inherited from VehiclePhysics.VehicleBase
enum  VehicleSleepCriteria { VehicleSleepCriteria.Strict, VehicleSleepCriteria.Relaxed }
 
enum  WheelPos { WheelPos.Default = 0, WheelPos.Left = 0, WheelPos.Right = 99 }
 
- Static Public Attributes inherited from VehiclePhysics.VehicleBase
static Collision currentCollision = null
 
static bool isCollisionEnter = false
 
static VehicleBase vehicle = null
 
- Properties inherited from VehiclePhysics.VehicleBase
Rigidbody cachedRigidbody [get]
 
Transform cachedTransform [get]
 
GroundMaterialManagerBase groundMaterialManager [get, set]
 
bool initialized [get, set]
 
bool isHardDrag [get]
 
bool isHardImpact [get]
 
Collider lastContactedCollider [get, set]
 
Vector3 localAcceleration [get]
 
Vector3 localDragPosition [get]
 
Vector3 localDragVelocity [get]
 
Vector3 localImpactPosition [get]
 
Vector3 localImpactVelocity [get]
 
bool paused [get, set]
 
float speed [get]
 
float speedAngle [get]
 
float time [get]
 
int wheelCount [get]
 
Wheel[] wheels [get]
 
WheelState[] wheelState [get]
 

Member Function Documentation

override void VehiclePhysics.VPVehicleController.DoUpdateBlocks ( )
inlineprotectedvirtual

Reimplemented from VehiclePhysics.VehicleBase.

override void VehiclePhysics.VPVehicleController.DoUpdateData ( )
inlineprotectedvirtual

Reimplemented from VehiclePhysics.VehicleBase.

override object VehiclePhysics.VPVehicleController.GetInternalObject ( Type  type)
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBase.

float VehiclePhysics.VPVehicleController.GetOptimalGearShiftRatio ( )
inline
float VehiclePhysics.VPVehicleController.GetWheelFinalRatio ( int  wheelIndex,
int  gear = 0 
)
inline
override void VehiclePhysics.VPVehicleController.OnInitialize ( )
inlineprotectedvirtual

Reimplemented from VehiclePhysics.VehicleBase.

Member Data Documentation

Brakes.AbsSettings VehiclePhysics.VPVehicleController.antiLock = new Brakes.AbsSettings()
AntiSpin.Settings VehiclePhysics.VPVehicleController.antiSpin = new AntiSpin.Settings()
VPAxle [] VehiclePhysics.VPVehicleController.axles
Brakes.Settings VehiclePhysics.VPVehicleController.brakes = new Brakes.Settings()
Differential.Settings VehiclePhysics.VPVehicleController.centerDifferential = new Differential.Settings()
Engine.ClutchSettings VehiclePhysics.VPVehicleController.clutch = new Engine.ClutchSettings()
Differential.Settings VehiclePhysics.VPVehicleController.differential = new Differential.Settings()
Driveline.Settings VehiclePhysics.VPVehicleController.driveline = new Driveline.Settings()
Engine.Settings VehiclePhysics.VPVehicleController.engine = new Engine.Settings()
float VehiclePhysics.VPVehicleController.engineReactionFactor = 1.0f
Gearbox.Settings VehiclePhysics.VPVehicleController.gearbox = new Gearbox.Settings()
Inertia.Settings VehiclePhysics.VPVehicleController.inertia = new Inertia.Settings()
Differential.Settings VehiclePhysics.VPVehicleController.interAxleDifferential = new Differential.Settings()
float VehiclePhysics.VPVehicleController.maxSubsystemsEnergy = 100000.0f
float VehiclePhysics.VPVehicleController.parkModeReactionFactor = 0.95f
Retarder.Settings VehiclePhysics.VPVehicleController.retarder = new Retarder.Settings()
SpeedControl.Settings VehiclePhysics.VPVehicleController.speedControl = new SpeedControl.Settings()
StabilityControl.Settings VehiclePhysics.VPVehicleController.stabilityControl = new StabilityControl.Settings()
Steering.Settings VehiclePhysics.VPVehicleController.steering = new Steering.Settings()
SteeringAids.Settings VehiclePhysics.VPVehicleController.steeringAids = new SteeringAids.Settings()
TireFriction VehiclePhysics.VPVehicleController.tireFriction = new TireFriction()
TorqueSplitter.Settings VehiclePhysics.VPVehicleController.torqueSplitter = new TorqueSplitter.Settings()
TractionControl.Settings VehiclePhysics.VPVehicleController.tractionControl = new TractionControl.Settings()

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