Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 |
/** * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class SVehicleSimTank extends SVehicleSimCar native(Physics); var float LeftTrackVel; var float RightTrackVel; var float LeftTrackTorque; var float RightTrackTorque; // With full throttle applied, the tank engine will split up // the MaxEngineToque across both tracks. This will be an even // split unless the tank is being steered. When steered, the // torque will be split based on the InsideTrackTorqueCurve // according to its current speed. // // For example... // When driving forward each track gets 50% of the total // torque. However, if the tank is steering left and the // InsideTrackTorqueCurve is 0.2, this will apply 20% of // the engine torque to the left track and the remaining // 80% will be applied to the right track. If the // InsideTrackTorqueCurve is -0.2 it will still split the // torque 20/80 however the inside torque will be applied // in the reverse direction. // // Keep in mind that total torque is conserved across both // tracks so if you were to direct 100% to the inside track // there wouldn't be any torque left to send to the outside // track. // // In addition, any track wheels with a positive SteerFactor // will have their lateral stiffness adjusted using // TurnMaxGripReduction/TurnGripScaleRate when tracks are at different speeds. // // TurnInPlaceThrottle allows you to set a reduced amount // of throttle for turning in place. var() float MaxEngineTorque; var() float EngineDamping; var() float InsideTrackTorqueFactor; var() float SteeringLatStiffnessFactor; var() float TurnInPlaceThrottle; /** Maximum amount we will reduce lateral grip. */ var() float TurnMaxGripReduction; /** How quickly grip drops off based on difference in track speed. */ var() float TurnGripScaleRate; /** If true, tank will turn in place when just steering is applied. */ var() bool bTurnInPlaceOnSteer; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) defaultproperties { TurnMaxGripReduction=0.970000 TurnGripScaleRate=1.000000 bTurnInPlaceOnSteer=True bWheelSpeedOverride=True Name="Default__SVehicleSimTank" ObjectArchetype=SVehicleSimCar'Engine.Default__SVehicleSimCar' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |