iRDS - Intelligent Race Driver System  V 2.1.0.5
 All Classes Namespaces Functions Variables Properties Events
IRDSWheel Class Reference
Inheritance diagram for IRDSWheel:

Classes

class  IRDSBasicSuspension
 
class  IRDSMacPhersonSuspension
 
class  IRDSWishboneSuspension
 

Public Types

enum  SuspensionType { Old = 0, Basic = 1, MacPherson = 2, Double_Whishbone = 3 }
 
enum  ContactPatchType { Wheel_hub_position = 0, Real_contact_patch }
 

Public Member Functions

WheelHit GetHit ()
 Gets the hit. More...
 
RaycastHit GetRayHit ()
 
Transform GetIRDSWheelTransform ()
 Gets the IRDS wheel transform. More...
 
Transform GetCamberTransform ()
 Gets the camber transform. More...
 
GameObject GetTireModel ()
 Gets the tire model. More...
 
GameObject GetCaliperModel ()
 Gets the caliper model. More...
 
void SetTireModel (GameObject Model)
 Sets the tire model. More...
 
void SetCaliperModel (GameObject Model)
 Sets the caliper model. More...
 
float GetTyreTemp ()
 Gets the tyre temp. More...
 
float GetTyreWear ()
 Gets the tyre wear. More...
 
bool GetWear ()
 Gets the wear. More...
 
void SetWear (bool Wear)
 Sets the wear. More...
 
float GetTyreHardness ()
 Gets the tyre hardness. More...
 
void SetTyreHardness (float hardness)
 Sets the tyre hardness. More...
 
float GetNormalForce ()
 Gets the normal force. More...
 
Vector3 GetLocalVelo ()
 Gets the local velo. More...
 
string GetWheelPosition ()
 Gets the wheel position. More...
 
float GetGrip ()
 Gets the grip. More...
 
void SetGrip (float Value)
 Sets the grip. More...
 
float[] GetBCoefficients ()
 Gets the B coefficients. More...
 
float[] GetACoefficients ()
 Gets A coefficients. More...
 
float[] GetCCoefficients ()
 Gets the C coefficients. More...
 
void SetBCoefficients (float[] coef)
 Sets the B coefficients. More...
 
void SetACoefficients (float[] coef)
 Sets A coefficients. More...
 
void SetCCoefficients (float[] coef)
 Sets the C coefficients. More...
 
float GetRadius ()
 Gets the radius. More...
 
void SetRadius (float Value)
 Sets the radius. More...
 
float GetSuspensionTravel ()
 Gets the suspension travel. More...
 
void SetSuspensionTravel (float Value)
 Sets the suspension travel. More...
 
float GetDampingRatio ()
 Gets the damping ratio. More...
 
void SetDampingRatio (float Value)
 Sets the damping ratio. More...
 
float GetInertia ()
 Gets the inertia. More...
 
void SetInertia (float Value)
 Sets the inertia. More...
 
float GetToeAngle ()
 Gets the toe angle. More...
 
void SetToeAngle (float Value)
 Sets the toe angle. More...
 
float GetCamberAngle ()
 Gets the camber angle. More...
 
float GetCurrentCamberAngle ()
 Gets the current camber angle. More...
 
void SetCamberAngle (float Value)
 Sets the camber angle. More...
 
float GetBrakeFrictionTorque ()
 Gets the brake friction torque. More...
 
void SetBrakeFrictionTorque (float Value)
 Sets the brake friction torque. More...
 
float GetHandBrakeFrictionTorque ()
 Gets the hand brake friction torque. More...
 
void SetHandBrakeFrictionTorque (float Value)
 Sets the hand brake friction torque. More...
 
float GetFrictionTorque ()
 Gets the friction torque. More...
 
void SetFrictionTorque (float Value)
 Sets the friction torque. More...
 
float GetMaxSteeringAngle ()
 Gets the max steering angle. More...
 
void SetMaxSteeringAngle (float Value)
 Sets the max steering angle. More...
 
float GetMassFraction ()
 Gets the mass fraction. More...
 
void SetMassFraction (float Value)
 Sets the mass fraction. More...
 
float GetAngularVelocity ()
 Gets the angular velocity. More...
 
float GetSlipRatio ()
 Gets the slip ratio. More...
 
float GetSlipAngle ()
 Gets the slip angle. More...
 
float GetSlipVelo ()
 Gets the slip velo. More...
 
float GetCompression ()
 Gets the compression. More...
 
Vector3 GetWheelVelo ()
 Gets the wheel velo. More...
 
float GetSpringForceRatio ()
 Gets the spring force ratio. More...
 
void SetSpringForceRatio (float Value)
 Sets the spring force ratio. More...
 
bool GetOnGround ()
 Gets the on ground. More...
 
float CalcLongitudinalForce (float slip)
 
float CalcLateralForce (float slipAngle, float camber)
 Calculates the lateral force. More...
 
void SetSuspension ()
 Sets the suspension. More...
 
float CalcMz ()
 Calculates the mz. This is useful for ForceFeedback calculations More...
 

Public Attributes

float camberSteeringFactor = 0.25f
 The camber steering factor. More...
 
float staticFrictionCoefficient = 1
 The static friction coefficient. More...
 
float originala2 = 0
 The originala2. More...
 
float compresionRatio
 The compresion ratio. More...
 
Vector3 wheelLocalPosition
 The wheel local position. More...
 
bool isFront = false
 is this wheel a front wheel?. More...
 
bool isLeft = false
 is this wheel a left wheel?. More...
 
float materialFriction =1f
 The material friction. More...
 
float materialBumpFactor = 0f
 The material bump factor. More...
 
float materialSinkFactor = 0f
 The material sink factor. More...
 
float rollingFriction = 0
 The rolling friction. More...
 
IRDSSkidmarks skidmarks
 The skidmarks. More...
 
int materialIndex = -1
 
float Fy = 0f
 The fy, lateral force of the wheel. More...
 
float Fx = 0f
 The fx, longitudinal force of the wheel. More...
 
PhysicMaterial currentMaterial
 The current material. More...
 
PhysicMaterial lastMaterial
 The last material. More...
 
bool oldSuspension = true
 old suspension?. More...
 
float newSuspensionRebound = 4000
 The new suspension rebound. More...
 
float newSuspensionBounce = 2500f
 The new suspension bounce. More...
 
float newSuspensionSpring = 50000f
 The new suspension spring. More...
 
float newSuspensionBumpStopRate = 150000f
 The new suspension bump stop rate. More...
 
float newSuspensionSpringFactorMin = 0.1f
 The new suspension spring factor minimum. More...
 
float newSuspensionSpringFactorMax = 0.2f
 The new suspension spring factor max. More...
 
float newSuspensionDampFactorMin = 0.1f
 The new suspension damp factor minimum. More...
 
float newSuspensionDampFactorMax = 0.2f
 The new suspension damp factor max. More...
 
RaycastHit hit1
 
bool realTireMode = false
 The real tire mode. More...
 
float slipRatioClamp = 1.5f
 The slip ratio clamp. More...
 
float slipAngleClamp = 1.5f
 The slip angle clamp. More...
 
float multiplierFY = 1f
 The FY multiplier. More...
 
float multiplierFX = 1f
 The FX multiplier. More...
 
Vector3 tireAngles = Vector3.zero
 The tire angles. More...
 
float maxCamberAngle = 25f
 The max camber angle. More...
 
SuspensionType suspensionType = SuspensionType.Old
 The type of the suspension. More...
 
IRDSBasicSuspension basicSuspension = new IRDSBasicSuspension()
 The basic suspension. More...
 
IRDSMacPhersonSuspension macPhersonSuspension = new IRDSMacPhersonSuspension()
 The mac pherson suspension. More...
 
IRDSWishboneSuspension wishBoneSuspension = new IRDSWishboneSuspension()
 The wish bone suspension. More...
 
float roadforce = 0f
 
float wheelieMultiplier = 0f
 The wheelie multiplier. More...
 
int tyreMode = 0
 
bool isPoweredWheel = false
 
ContactPatchType contactPatchType
 The type of the contact patch. If you select Wheel_hub_position the system would use the wheel position to apply all the tire forces at that point (default and old way of applying forces), and if you select Real_contact_patch all the tire forces would be applied at the actual contact patch between the tire and the surface it is touching. More...
 
LayerMask layers = -1
 The layers the tire would be able to touch, this is useful to avoid the tires from getting raycast from walls and other cars, i.e. to avoid super sudden jumps. More...
 

Member Function Documentation

float IRDSWheel.CalcLateralForce ( float  slipAngle,
float  camber 
)

Calculates the lateral force.

Returns
The lateral force.
Parameters
slipAngleSlip angle.
float IRDSWheel.CalcMz ( )

Calculates the mz. This is useful for ForceFeedback calculations

Returns
The mz.
float [] IRDSWheel.GetACoefficients ( )

Gets A coefficients.

Returns
The A coefficients.
float IRDSWheel.GetAngularVelocity ( )

Gets the angular velocity.

Returns
The angular velocity.
float [] IRDSWheel.GetBCoefficients ( )

Gets the B coefficients.

Returns
The B coefficients.
float IRDSWheel.GetBrakeFrictionTorque ( )

Gets the brake friction torque.

Returns
The brake friction torque.
GameObject IRDSWheel.GetCaliperModel ( )

Gets the caliper model.

Returns
The caliper model.
float IRDSWheel.GetCamberAngle ( )

Gets the camber angle.

Returns
The camber angle.
Transform IRDSWheel.GetCamberTransform ( )

Gets the camber transform.

Returns
The camber transform.
float [] IRDSWheel.GetCCoefficients ( )

Gets the C coefficients.

Returns
The C coefficients.
float IRDSWheel.GetCompression ( )

Gets the compression.

Returns
The compression.
float IRDSWheel.GetCurrentCamberAngle ( )

Gets the current camber angle.

Returns
The current camber angle.
float IRDSWheel.GetDampingRatio ( )

Gets the damping ratio.

Returns
The damping ratio.
float IRDSWheel.GetFrictionTorque ( )

Gets the friction torque.

Returns
The friction torque.
float IRDSWheel.GetGrip ( )

Gets the grip.

Returns
The grip.
float IRDSWheel.GetHandBrakeFrictionTorque ( )

Gets the hand brake friction torque.

Returns
The hand brake friction torque.
WheelHit IRDSWheel.GetHit ( )

Gets the hit.

Returns
The hit.
float IRDSWheel.GetInertia ( )

Gets the inertia.

Returns
The inertia.
Transform IRDSWheel.GetIRDSWheelTransform ( )

Gets the IRDS wheel transform.

Returns
The IRDS wheel transform.
Vector3 IRDSWheel.GetLocalVelo ( )

Gets the local velo.

Returns
The local velo.
float IRDSWheel.GetMassFraction ( )

Gets the mass fraction.

Returns
The mass fraction.
float IRDSWheel.GetMaxSteeringAngle ( )

Gets the max steering angle.

Returns
The max steering angle.
float IRDSWheel.GetNormalForce ( )

Gets the normal force.

Returns
The normal force.
bool IRDSWheel.GetOnGround ( )

Gets the on ground.

Returns
true, if on ground was gotten, false otherwise.
float IRDSWheel.GetRadius ( )

Gets the radius.

Returns
The radius.
float IRDSWheel.GetSlipAngle ( )

Gets the slip angle.

Returns
The slip angle.
float IRDSWheel.GetSlipRatio ( )

Gets the slip ratio.

Returns
The slip ratio.
float IRDSWheel.GetSlipVelo ( )

Gets the slip velo.

Returns
The slip velo.
float IRDSWheel.GetSpringForceRatio ( )

Gets the spring force ratio.

Returns
The spring force ratio.
float IRDSWheel.GetSuspensionTravel ( )

Gets the suspension travel.

Returns
The suspension travel.
GameObject IRDSWheel.GetTireModel ( )

Gets the tire model.

Returns
The tire model.
float IRDSWheel.GetToeAngle ( )

Gets the toe angle.

Returns
The toe angle.
float IRDSWheel.GetTyreHardness ( )

Gets the tyre hardness.

Returns
The tyre hardness.
float IRDSWheel.GetTyreTemp ( )

Gets the tyre temp.

Returns
The tyre temp.
float IRDSWheel.GetTyreWear ( )

Gets the tyre wear.

Returns
The tyre wear.
bool IRDSWheel.GetWear ( )

Gets the wear.

Returns
true, if wear was gotten, false otherwise.
string IRDSWheel.GetWheelPosition ( )

Gets the wheel position.

Returns
The wheel position.
Vector3 IRDSWheel.GetWheelVelo ( )

Gets the wheel velo.

Returns
The wheel velo.
void IRDSWheel.SetACoefficients ( float[]  coef)

Sets A coefficients.

Parameters
coefCoef.
void IRDSWheel.SetBCoefficients ( float[]  coef)

Sets the B coefficients.

Parameters
coefCoef.
void IRDSWheel.SetBrakeFrictionTorque ( float  Value)

Sets the brake friction torque.

Parameters
ValueValue.
void IRDSWheel.SetCaliperModel ( GameObject  Model)

Sets the caliper model.

Parameters
ModelModel.
void IRDSWheel.SetCamberAngle ( float  Value)

Sets the camber angle.

Parameters
ValueValue.
void IRDSWheel.SetCCoefficients ( float[]  coef)

Sets the C coefficients.

Parameters
coefCoef.
void IRDSWheel.SetDampingRatio ( float  Value)

Sets the damping ratio.

Parameters
ValueValue.
void IRDSWheel.SetFrictionTorque ( float  Value)

Sets the friction torque.

Parameters
ValueValue.
void IRDSWheel.SetGrip ( float  Value)

Sets the grip.

Parameters
ValueValue.
void IRDSWheel.SetHandBrakeFrictionTorque ( float  Value)

Sets the hand brake friction torque.

Parameters
ValueValue.
void IRDSWheel.SetInertia ( float  Value)

Sets the inertia.

Parameters
ValueValue.
void IRDSWheel.SetMassFraction ( float  Value)

Sets the mass fraction.

Parameters
ValueValue.
void IRDSWheel.SetMaxSteeringAngle ( float  Value)

Sets the max steering angle.

Parameters
ValueValue.
void IRDSWheel.SetRadius ( float  Value)

Sets the radius.

Parameters
ValueValue.
void IRDSWheel.SetSpringForceRatio ( float  Value)

Sets the spring force ratio.

Parameters
ValueValue.
void IRDSWheel.SetSuspension ( )

Sets the suspension.

void IRDSWheel.SetSuspensionTravel ( float  Value)

Sets the suspension travel.

Parameters
ValueValue.
void IRDSWheel.SetTireModel ( GameObject  Model)

Sets the tire model.

Parameters
ModelModel.
void IRDSWheel.SetToeAngle ( float  Value)

Sets the toe angle.

Parameters
ValueValue.
void IRDSWheel.SetTyreHardness ( float  hardness)

Sets the tyre hardness.

Parameters
hardnessHardness.
void IRDSWheel.SetWear ( bool  Wear)

Sets the wear.

Parameters
WearIf set to true wear.

Member Data Documentation

IRDSBasicSuspension IRDSWheel.basicSuspension = new IRDSBasicSuspension()

The basic suspension.

float IRDSWheel.camberSteeringFactor = 0.25f

The camber steering factor.

float IRDSWheel.compresionRatio

The compresion ratio.

ContactPatchType IRDSWheel.contactPatchType

The type of the contact patch. If you select Wheel_hub_position the system would use the wheel position to apply all the tire forces at that point (default and old way of applying forces), and if you select Real_contact_patch all the tire forces would be applied at the actual contact patch between the tire and the surface it is touching.

PhysicMaterial IRDSWheel.currentMaterial

The current material.

float IRDSWheel.Fx = 0f

The fx, longitudinal force of the wheel.

float IRDSWheel.Fy = 0f

The fy, lateral force of the wheel.

bool IRDSWheel.isFront = false

is this wheel a front wheel?.

bool IRDSWheel.isLeft = false

is this wheel a left wheel?.

PhysicMaterial IRDSWheel.lastMaterial

The last material.

LayerMask IRDSWheel.layers = -1

The layers the tire would be able to touch, this is useful to avoid the tires from getting raycast from walls and other cars, i.e. to avoid super sudden jumps.

IRDSMacPhersonSuspension IRDSWheel.macPhersonSuspension = new IRDSMacPhersonSuspension()

The mac pherson suspension.

float IRDSWheel.materialBumpFactor = 0f

The material bump factor.

float IRDSWheel.materialFriction =1f

The material friction.

float IRDSWheel.materialSinkFactor = 0f

The material sink factor.

float IRDSWheel.maxCamberAngle = 25f

The max camber angle.

float IRDSWheel.multiplierFX = 1f

The FX multiplier.

float IRDSWheel.multiplierFY = 1f

The FY multiplier.

float IRDSWheel.newSuspensionBounce = 2500f

The new suspension bounce.

float IRDSWheel.newSuspensionBumpStopRate = 150000f

The new suspension bump stop rate.

float IRDSWheel.newSuspensionDampFactorMax = 0.2f

The new suspension damp factor max.

float IRDSWheel.newSuspensionDampFactorMin = 0.1f

The new suspension damp factor minimum.

float IRDSWheel.newSuspensionRebound = 4000

The new suspension rebound.

float IRDSWheel.newSuspensionSpring = 50000f

The new suspension spring.

float IRDSWheel.newSuspensionSpringFactorMax = 0.2f

The new suspension spring factor max.

float IRDSWheel.newSuspensionSpringFactorMin = 0.1f

The new suspension spring factor minimum.

bool IRDSWheel.oldSuspension = true

old suspension?.

float IRDSWheel.originala2 = 0

The originala2.

bool IRDSWheel.realTireMode = false

The real tire mode.

float IRDSWheel.rollingFriction = 0

The rolling friction.

IRDSSkidmarks IRDSWheel.skidmarks

The skidmarks.

float IRDSWheel.slipAngleClamp = 1.5f

The slip angle clamp.

float IRDSWheel.slipRatioClamp = 1.5f

The slip ratio clamp.

float IRDSWheel.staticFrictionCoefficient = 1

The static friction coefficient.

SuspensionType IRDSWheel.suspensionType = SuspensionType.Old

The type of the suspension.

Vector3 IRDSWheel.tireAngles = Vector3.zero

The tire angles.

float IRDSWheel.wheelieMultiplier = 0f

The wheelie multiplier.

Vector3 IRDSWheel.wheelLocalPosition

The wheel local position.

IRDSWishboneSuspension IRDSWheel.wishBoneSuspension = new IRDSWishboneSuspension()

The wish bone suspension.