Drivetrain
From UnityCar Wiki
(Difference between revisions)
| (5 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | This class simulates the engine and the driveline. | + | This class simulates the '''engine''' and the '''driveline'''. The engine generates the torque (and consequently the power) which is used to move the vehicle. The driveline represents everything needed to transfer the engine torque to the wheels: clutch, transmission and differential. |
| + | |||
| + | __TOC__ | ||
== Engine == | == Engine == | ||
| - | |||
| + | The engine generates the torque (and consequently the power) which is used to move the vehicle. Parameters: | ||
| - | |||
| - | |||
| - | |||
| - | + | * '''max Power''', which represents the max power (in HP) produced by the engine. Typical value for a medium car is 150 HP, for a powerful car is 450 HP. | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | |||
| + | * '''max Power RPM''', which represents the RPM (Revs Per Minute) at which the max Power is produced. Typical values are in the range 5000 – 9000 RPM. Should be lower or equal than max RPM. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | + | * '''max Torque''', which represents the max torque(in N*m) produced by the engine. Typical value for a medium car is 200 Nm, for a powerful car is 500 Nm. | |
| - | + | ||
| - | + | ||
| - | torque | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | + | * '''max Torque RPM''', which represents the RPM (Revs Per Minute) at which the max Torque is produced. Typical values are in the range 2000 – 5000 RPM. Should be lower or equal than max RPM. | |
| + | |||
| + | |||
| + | |||
| + | * '''min RPM''', which represents the idle RPM (Revs Per Minute). Typical values are in the range 500 – 1500 RPM. | ||
| + | |||
| + | |||
| + | |||
| + | * '''max RPM''', which represents the maximum RPM (Revs Per Minute) for the engine to work (when revLimiter is enabled). Typical values are in the range 6000 – 10000 RPM. Should be higher or equal than max Power RPM; | ||
| + | |||
| + | |||
| + | |||
| + | * '''Can Stall''' if checked, the engine can stall if the clutch is engaged too quickly. Otherwise RPM is always kept equal or higher than min RPM. | ||
| + | |||
| + | |||
| + | |||
| + | * '''Rev Limiter''' if checked, when RPM becomes equal or greater than max RPM rev limiter kicks in and cuts off the throttle for rev Limiter Time seconds. | ||
| + | |||
| + | |||
| + | |||
| + | * '''Rev Limiter Time''' amount of time for the engine to be cutted if Rev Limiter is checked. | ||
| + | |||
| + | |||
| + | |||
| + | * '''Engine Inertia''' this value slows down engine revving up. The higher the engine inertia, the slower the engine revs up. | ||
| + | |||
| + | |||
| + | |||
| + | * '''Engine Friction Factor''' this value causes the engine to slow down and cause engine braking. The higher this value, the quicker the engine is slowed down. Typical value is 0.25. Important: as in real life, Engine Friction Factor causes power loss. With a value of 0.25 the power loss is about 23% (typical real life value). | ||
| + | |||
| + | |||
| + | |||
| + | * '''Engine orientation''' determines how the car body moves as the engine revs up in neutral.Typically either Vector3.forward or Vector3.right. | ||
| - | |||
== Driveline == | == Driveline == | ||
| - | The | + | The driveline represents everything needed to transfer the engine torque to the wheels: clutch,transmission and differential. Parameters: |
| + | |||
| + | |||
| + | |||
| + | * '''Drivetrain Inertia''' this value represents the inertia of the drivetrain. It works in a similar way of the engine inertia, and it adds a further inertia to the system. | ||
| + | |||
| + | |||
| + | |||
| + | * '''Transmission''' specify the number and which wheels are used to transfer power to the ground. Values are FWD (front axle wheels), RWD (rear axle wheels), AWD (all axles wheels) and XWD (any combination of any axles can be used). | ||
| - | |||
| + | * '''Gear Ratios''' represents the number and the ratio of the gears. The size value represents the numbers of the gears (included neutral and reverse). The value of each element represents the ratio, that is the length of that gear. The smaller the value, the longer the gear. The first element should be reverse (so its value should be negative), the second element should neutral (so its value should be zero), the third element should first gear and so on. Anyway you can use as many reverse and as many forward gear, provided that in the middle there is a neutral gear (that is with value zero). | ||
| - | |||
| - | *''' | + | * '''Final Drive Ratio''' represents the ratio of all gears. So if you want to make all gears longer, just decrease this value, if you want to make all gears shorter, increase this value. Typical values are 3.5 for a medium car and 6.0 for a powerful car. |
| - | |||
| + | * '''Differential Lock Coefficient''' Coefficient determining how much torque is Transferred between the wheels when they move at different speeds, to simulate differential locking. | ||
| - | |||
| - | *''' | + | * '''Shifter''' if checked, gears are shifted using a button for every gear (by default set to work with G25/G27 shifter). |
| - | |||
| + | * '''Automatic''' if checked, gears are shifted automatically. | ||
| - | |||
| - | *''' | + | * '''Auto Reverse''' if checked, shift from first gear to reverse is done automatically. |
| - | |||
| + | * '''Shift Down RPM''' this value represents the RPM (Revs Per Minute) at which the automatic transmission shifts to the previous gear. Works only if Automatic is checked. Should be higher than minRPM and lower than Shift Up RPM. | ||
| - | |||
| - | *''' | + | * '''Shift Up RPM''' this value represents the RPM (Revs Per Minute) at which the automatic transmission shifts to the next gear. Works only if Automatic is checked. Should be lower than maxRPM and higher than Shift Down RPM. |
| - | |||
| + | * '''Shift Time''' this values represents how much time the automatic transmission takes to change gears (in seconds).Typical values are in the range of 0.2 – 0.8 seconds. Sports cars have lower values than offroad cars. | ||
| - | |||
| - | *''' | + | * '''Auto Clutch''' if checked, clutch is engaged and disengaged automatically. |
| - | |||
| + | * '''Engage RPM''' this value represents the RPM (Revs Per Minute) at which the clutch starts engaging (that is the clutch starts connecting the engine to the wheel). Should be higher than the minRPM and higher than DisengageRPM. | ||
| - | |||
| - | *''' | + | * '''Disengage RPM''' this value represents the RPM (Revs Per Minute) at which the clutch starts disengaging (that is the clutch starts disconnecting the engine from the wheel) when the RPM is too low for the current gear. Should be higher than the minRPM and lower than EngageRPM. |
| - | |||
| + | * '''Fuel Consumption''' At Constant Speed this value represents engine fuel consumption (in litres/100km) at fuel Consumption Speed speed. | ||
| - | |||
| - | *''' | + | * '''Fuel Consumption Speed''' this value represents the speed (in km/h) at which vehicle consumes fuel Consumption At Constant Speed value. |
Latest revision as of 10:51, 7 April 2015
This class simulates the engine and the driveline. The engine generates the torque (and consequently the power) which is used to move the vehicle. The driveline represents everything needed to transfer the engine torque to the wheels: clutch, transmission and differential.
Contents |
Engine
The engine generates the torque (and consequently the power) which is used to move the vehicle. Parameters:
- max Power, which represents the max power (in HP) produced by the engine. Typical value for a medium car is 150 HP, for a powerful car is 450 HP.
- max Power RPM, which represents the RPM (Revs Per Minute) at which the max Power is produced. Typical values are in the range 5000 – 9000 RPM. Should be lower or equal than max RPM.
- max Torque, which represents the max torque(in N*m) produced by the engine. Typical value for a medium car is 200 Nm, for a powerful car is 500 Nm.
- max Torque RPM, which represents the RPM (Revs Per Minute) at which the max Torque is produced. Typical values are in the range 2000 – 5000 RPM. Should be lower or equal than max RPM.
- min RPM, which represents the idle RPM (Revs Per Minute). Typical values are in the range 500 – 1500 RPM.
- max RPM, which represents the maximum RPM (Revs Per Minute) for the engine to work (when revLimiter is enabled). Typical values are in the range 6000 – 10000 RPM. Should be higher or equal than max Power RPM;
- Can Stall if checked, the engine can stall if the clutch is engaged too quickly. Otherwise RPM is always kept equal or higher than min RPM.
- Rev Limiter if checked, when RPM becomes equal or greater than max RPM rev limiter kicks in and cuts off the throttle for rev Limiter Time seconds.
- Rev Limiter Time amount of time for the engine to be cutted if Rev Limiter is checked.
- Engine Inertia this value slows down engine revving up. The higher the engine inertia, the slower the engine revs up.
- Engine Friction Factor this value causes the engine to slow down and cause engine braking. The higher this value, the quicker the engine is slowed down. Typical value is 0.25. Important: as in real life, Engine Friction Factor causes power loss. With a value of 0.25 the power loss is about 23% (typical real life value).
- Engine orientation determines how the car body moves as the engine revs up in neutral.Typically either Vector3.forward or Vector3.right.
Driveline
The driveline represents everything needed to transfer the engine torque to the wheels: clutch,transmission and differential. Parameters:
- Drivetrain Inertia this value represents the inertia of the drivetrain. It works in a similar way of the engine inertia, and it adds a further inertia to the system.
- Transmission specify the number and which wheels are used to transfer power to the ground. Values are FWD (front axle wheels), RWD (rear axle wheels), AWD (all axles wheels) and XWD (any combination of any axles can be used).
- Gear Ratios represents the number and the ratio of the gears. The size value represents the numbers of the gears (included neutral and reverse). The value of each element represents the ratio, that is the length of that gear. The smaller the value, the longer the gear. The first element should be reverse (so its value should be negative), the second element should neutral (so its value should be zero), the third element should first gear and so on. Anyway you can use as many reverse and as many forward gear, provided that in the middle there is a neutral gear (that is with value zero).
- Final Drive Ratio represents the ratio of all gears. So if you want to make all gears longer, just decrease this value, if you want to make all gears shorter, increase this value. Typical values are 3.5 for a medium car and 6.0 for a powerful car.
- Differential Lock Coefficient Coefficient determining how much torque is Transferred between the wheels when they move at different speeds, to simulate differential locking.
- Shifter if checked, gears are shifted using a button for every gear (by default set to work with G25/G27 shifter).
- Automatic if checked, gears are shifted automatically.
- Auto Reverse if checked, shift from first gear to reverse is done automatically.
- Shift Down RPM this value represents the RPM (Revs Per Minute) at which the automatic transmission shifts to the previous gear. Works only if Automatic is checked. Should be higher than minRPM and lower than Shift Up RPM.
- Shift Up RPM this value represents the RPM (Revs Per Minute) at which the automatic transmission shifts to the next gear. Works only if Automatic is checked. Should be lower than maxRPM and higher than Shift Down RPM.
- Shift Time this values represents how much time the automatic transmission takes to change gears (in seconds).Typical values are in the range of 0.2 – 0.8 seconds. Sports cars have lower values than offroad cars.
- Auto Clutch if checked, clutch is engaged and disengaged automatically.
- Engage RPM this value represents the RPM (Revs Per Minute) at which the clutch starts engaging (that is the clutch starts connecting the engine to the wheel). Should be higher than the minRPM and higher than DisengageRPM.
- Disengage RPM this value represents the RPM (Revs Per Minute) at which the clutch starts disengaging (that is the clutch starts disconnecting the engine from the wheel) when the RPM is too low for the current gear. Should be higher than the minRPM and lower than EngageRPM.
- Fuel Consumption At Constant Speed this value represents engine fuel consumption (in litres/100km) at fuel Consumption Speed speed.
- Fuel Consumption Speed this value represents the speed (in km/h) at which vehicle consumes fuel Consumption At Constant Speed value.