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

Public Member Functions

void AdjustToWheelMesh ()
 
void ApplyForce (Vector3 force, Vector3 position, Rigidbody otherRb)
 
override void FixedUpdateVehicle ()
 
float GetContactDepth (Vector3 contactPoint, float suspensionTravel)
 
bool GetGroundHit (out WheelHit hit)
 
Vector3 GetTangentVelocity (Vector3 contactPoint, Vector3 surfaceNormal, Rigidbody surfaceRigidbody)
 
override int GetUpdateOrder ()
 
WheelCollider GetWheelCollider ()
 
override void OnDisableComponent ()
 
override void OnDisableVehicle ()
 
override void OnEnableVehicle ()
 
WheelCollider ResetWheelCollider ()
 
void SetSuspensionForceOffset (float offset)
 
void UpdateVisualWheel (float deltaTime)
 
- Public Member Functions inherited from VehiclePhysics.VehicleBehaviour
void DebugLogError (string message)
 
void DebugLogWarning (string message)
 
virtual void OnEnableComponent ()
 
virtual void OnEnterPause ()
 
virtual void OnLeavePause ()
 
virtual void OnReposition ()
 
virtual void UpdateVehicle ()
 
virtual void UpdateVehicleSuspension ()
 

Public Attributes

Transform caliperTransform
 
Vector3 center
 
float damperRate = 1500.0f
 
bool disableSuspensionMovement = false
 
float groundPenetration = 0.02f
 
bool hideWheelOnDisable = true
 
int layerMask = ~0
 
float mass = 20.0f
 
float radius = 0.3f
 
float springRate = 30000.0f
 
float suspensionAnchor = 0.5f
 
float suspensionDistance = 0.25f
 
float suspensionOffset = 0f
 
Transform suspensionTransform
 
bool updateCaliper
 
bool updateSuspension
 
bool updateWheel
 
Transform wheelTransform
 

Static Public Attributes

static bool disableSteerAngleFix = false
 
static bool disableWheelReferenceFrameFix = false
 
static float minSuspensionDistance = 0.01f
 
static float scaleFactor = 1.0f
 

Properties

float angularPosition [get, set]
 
float angularVelocity [get, set]
 
Transform cachedTransform [get]
 
bool canSleep [get, set]
 
float effectiveSpringRate [get]
 
bool hidden [get, set]
 
float lastRuntimeDamperRate [get, set]
 
float lastRuntimeSpringRate [get, set]
 
float lastRuntimeSuspensionTravel [get, set]
 
float runtimeDamperRate [get, set]
 
float runtimeExtraDownforce [get, set]
 
float runtimeSpringRate [get, set]
 
float runtimeSuspensionTravel [get, set]
 
float steerAngle [get, set]
 
bool visualGrounded [get, set]
 
RaycastHit visualHit [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

void VehiclePhysics.VPWheelCollider.AdjustToWheelMesh ( )
inline
void VehiclePhysics.VPWheelCollider.ApplyForce ( Vector3  force,
Vector3  position,
Rigidbody  otherRb 
)
inline
override void VehiclePhysics.VPWheelCollider.FixedUpdateVehicle ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

float VehiclePhysics.VPWheelCollider.GetContactDepth ( Vector3  contactPoint,
float  suspensionTravel 
)
inline
bool VehiclePhysics.VPWheelCollider.GetGroundHit ( out WheelHit  hit)
inline
Vector3 VehiclePhysics.VPWheelCollider.GetTangentVelocity ( Vector3  contactPoint,
Vector3  surfaceNormal,
Rigidbody  surfaceRigidbody 
)
inline
override int VehiclePhysics.VPWheelCollider.GetUpdateOrder ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

WheelCollider VehiclePhysics.VPWheelCollider.GetWheelCollider ( )
inline
override void VehiclePhysics.VPWheelCollider.OnDisableComponent ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

override void VehiclePhysics.VPWheelCollider.OnDisableVehicle ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

override void VehiclePhysics.VPWheelCollider.OnEnableVehicle ( )
inlinevirtual

Reimplemented from VehiclePhysics.VehicleBehaviour.

WheelCollider VehiclePhysics.VPWheelCollider.ResetWheelCollider ( )
inline
void VehiclePhysics.VPWheelCollider.SetSuspensionForceOffset ( float  offset)
inline
void VehiclePhysics.VPWheelCollider.UpdateVisualWheel ( float  deltaTime)
inline

Member Data Documentation

Transform VehiclePhysics.VPWheelCollider.caliperTransform
Vector3 VehiclePhysics.VPWheelCollider.center
float VehiclePhysics.VPWheelCollider.damperRate = 1500.0f
bool VehiclePhysics.VPWheelCollider.disableSteerAngleFix = false
static
bool VehiclePhysics.VPWheelCollider.disableSuspensionMovement = false
bool VehiclePhysics.VPWheelCollider.disableWheelReferenceFrameFix = false
static
float VehiclePhysics.VPWheelCollider.groundPenetration = 0.02f
bool VehiclePhysics.VPWheelCollider.hideWheelOnDisable = true
int VehiclePhysics.VPWheelCollider.layerMask = ~0
float VehiclePhysics.VPWheelCollider.mass = 20.0f
float VehiclePhysics.VPWheelCollider.minSuspensionDistance = 0.01f
static
float VehiclePhysics.VPWheelCollider.radius = 0.3f
float VehiclePhysics.VPWheelCollider.scaleFactor = 1.0f
static
float VehiclePhysics.VPWheelCollider.springRate = 30000.0f
float VehiclePhysics.VPWheelCollider.suspensionAnchor = 0.5f
float VehiclePhysics.VPWheelCollider.suspensionDistance = 0.25f
float VehiclePhysics.VPWheelCollider.suspensionOffset = 0f
Transform VehiclePhysics.VPWheelCollider.suspensionTransform
bool VehiclePhysics.VPWheelCollider.updateCaliper
bool VehiclePhysics.VPWheelCollider.updateSuspension
bool VehiclePhysics.VPWheelCollider.updateWheel
Transform VehiclePhysics.VPWheelCollider.wheelTransform

Property Documentation

float VehiclePhysics.VPWheelCollider.angularPosition
getset
float VehiclePhysics.VPWheelCollider.angularVelocity
getset
Transform VehiclePhysics.VPWheelCollider.cachedTransform
get
bool VehiclePhysics.VPWheelCollider.canSleep
getset
float VehiclePhysics.VPWheelCollider.effectiveSpringRate
get
bool VehiclePhysics.VPWheelCollider.hidden
getset
float VehiclePhysics.VPWheelCollider.lastRuntimeDamperRate
getset
float VehiclePhysics.VPWheelCollider.lastRuntimeSpringRate
getset
float VehiclePhysics.VPWheelCollider.lastRuntimeSuspensionTravel
getset
float VehiclePhysics.VPWheelCollider.runtimeDamperRate
getset
float VehiclePhysics.VPWheelCollider.runtimeExtraDownforce
getset
float VehiclePhysics.VPWheelCollider.runtimeSpringRate
getset
float VehiclePhysics.VPWheelCollider.runtimeSuspensionTravel
getset
float VehiclePhysics.VPWheelCollider.steerAngle
getset
bool VehiclePhysics.VPWheelCollider.visualGrounded
getset
RaycastHit VehiclePhysics.VPWheelCollider.visualHit
get

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