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