My program doesn't have bugs. It just develops random features.
UE2:KCar (U2)
Contents
- 1 Properties
- 1.1 Property group 'KCar'
- 1.1.1 ChassisMass
- 1.1.2 EngineBraking
- 1.1.3 HandbrakeThresh
- 1.1.4 MaxBrakeTorque
- 1.1.5 MaxNetUpdateInterval
- 1.1.6 MaxSteerAngle
- 1.1.7 MaxWheelSpeed
- 1.1.8 RearTireClass
- 1.1.9 SprintForce
- 1.1.10 SprintTime
- 1.1.11 SteerPropGap
- 1.1.12 SteerSpeed
- 1.1.13 SteerTorque
- 1.1.14 StopThreshold
- 1.1.15 SuspDamping
- 1.1.16 SuspHighLimit
- 1.1.17 SuspLowLimit
- 1.1.18 SuspRef
- 1.1.19 SuspStiffness
- 1.1.20 TireAdhesion
- 1.1.21 TireHandbrakeFriction
- 1.1.22 TireHandbrakeSlip
- 1.1.23 TireLateralFriction
- 1.1.24 TireLateralSlip
- 1.1.25 TireMass
- 1.1.26 TireMinSlip
- 1.1.27 TireRestitution
- 1.1.28 TireRollFriction
- 1.1.29 TireRollSlip
- 1.1.30 TireSlipRate
- 1.1.31 TireSoftness
- 1.1.32 TorqueCurve
- 1.1.33 TorqueSplit
- 1.2 Internal variables
- 1.2.1 bIsInverted
- 1.2.2 bNewCarState
- 1.2.3 CarState
- 1.2.4 ChassisState
- 1.2.5 EnergyAccumulator
- 1.2.6 ForwardVel
- 1.2.7 Gear
- 1.2.8 IsDriving
- 1.2.9 NextNetUpdateTime
- 1.2.10 OfflineSound
- 1.2.11 OutputBrake
- 1.2.12 OutputHandbrakeOn
- 1.2.13 OutputTorque
- 1.2.14 SprintSound
- 1.2.15 SprintTimeLeft
- 1.2.16 WheelFrontAcross
- 1.2.17 WheelFrontAlong
- 1.2.18 WheelRearAcross
- 1.2.19 WheelRearAlong
- 1.2.20 WheelSpinSpeed
- 1.3 Default values
- 1.1 Property group 'KCar'
- 2 Structs
- 3 Functions
- Package:
- Vehicles
- Direct subclass:
- XMPVehicle
- This class in other games:
- UT2003, UT2004
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Base class for 4-wheeled vehicles using Karma Assumes negative-X is forward, negative-Y is right
Properties[edit]
Property group 'KCar'[edit]
ChassisMass[edit]
Type: float
Default value: 4.0
EngineBraking[edit]
Type: bool
HandbrakeThresh[edit]
Type: float
speed above which handbrake comes on =]
Default value: 1000.0
MaxBrakeTorque[edit]
Type: float
Braking torque applied to all four wheels. Positive only.
Default value: 50.0
MaxNetUpdateInterval[edit]
Type: float
Default value: 0.4
MaxSteerAngle[edit]
Type: float
(65535 = 360 deg)
Default value: 3900.0
MaxWheelSpeed[edit]
Type: float
Default value: 1310700.0
RearTireClass[edit]
SprintForce[edit]
Type: float
Default value: 1500.0
SprintTime[edit]
Type: float
Default value: 0.5
SteerPropGap[edit]
Type: float
Default value: 1000.0
SteerSpeed[edit]
Type: float
Default value: 15000.0
SteerTorque[edit]
Type: float
Default value: 1000.0
StopThreshold[edit]
Type: float
Forward velocity under which brakes become drive.
Default value: 100.0
SuspDamping[edit]
Type: float
Default value: 5.0
SuspHighLimit[edit]
Type: float
Default value: 1.0
SuspLowLimit[edit]
Type: float
Default value: -1.0
SuspRef[edit]
Type: float
SuspStiffness[edit]
Type: float
Default value: 50.0
TireAdhesion[edit]
Type: float
TireHandbrakeFriction[edit]
Type: float
Additional lateral friction when handbrake engaged
Default value: -0.5
TireHandbrakeSlip[edit]
Type: float
Additional lateral slip when handbrake engaged
Default value: 0.06
TireLateralFriction[edit]
Type: float
Default value: 1.0
TireLateralSlip[edit]
Type: float
Default value: 0.06
TireMass[edit]
Type: float
Default value: 0.5
TireMinSlip[edit]
Type: float
Default value: 0.0010
TireRestitution[edit]
Type: float
TireRollFriction[edit]
Type: float
Default value: 1.0
TireRollSlip[edit]
Type: float
Default value: 0.085
TireSlipRate[edit]
Type: float
Default value: 5.0E-4
TireSoftness[edit]
Type: float
Default value: 2.0E-4
TorqueCurve[edit]
Type: Object.InterpCurve
Engine RPM in, Torque out.
Default value:
Member | Value | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Points |
|
TorqueSplit[edit]
Type: float
front/rear drive torque split. 1 is fully RWD, 0 is fully FWD. 0.5 is standard 4WD.
Default value: 0.5
Internal variables[edit]
bIsInverted[edit]
Type: bool
bNewCarState[edit]
Type: bool
Indicated there is new data processed, and chassis RBState should be updated.
CarState[edit]
Type: KCarState
This is replicated to the car, and processed to update all the parts.
ChassisState[edit]
Type: Actor.KRigidBodyState
EnergyAccumulator[edit]
Type: float
ForwardVel[edit]
Type: float
Component of cars velocity in its forward direction.
Gear[edit]
Type: int
Default value: 1
IsDriving[edit]
Type: bool
NextNetUpdateTime[edit]
Type: float
OfflineSound[edit]
Type: Sound
Default value: Sound'VehiclesA.Generic.Error'
OutputBrake[edit]
Type: bool
OutputHandbrakeOn[edit]
Type: bool
OutputTorque[edit]
Type: float
SprintSound[edit]
Type: Sound
Default value: Sound'U2Ambient2A.ShipEngines.Dropship_AttitudeEnd'
SprintTimeLeft[edit]
Type: float
WheelFrontAcross[edit]
Type: float
Modifiers: const
Default value: 140.0
WheelFrontAlong[edit]
Type: float
Modifiers: const
Default value: -180.0
WheelRearAcross[edit]
Type: float
Modifiers: const
Default value: 140.0
WheelRearAlong[edit]
Type: float
Modifiers: const
Default value: 160.0
WheelSpinSpeed[edit]
Type: float
Current (averaged) RPM of rear wheels
Default values[edit]
Property | Value |
---|---|
bUseCompressedPosition | False |
WheelVert | -0.5 |
Structs[edit]
KCarState[edit]
- Actor.KRBVec ChassisPosition
- Object.Quat ChassisQuaternion
- Actor.KRBVec ChassisLinVel
- Actor.KRBVec ChassisAngVel
- float WheelHeight[4]
- FL, FR, RL, RR
- float FrontWheelAng[2]
- FL, FR
- float WheelVertVel[4]
- float ServerSteering
- float ServerTorque
- bool ServerBrake
- bool ServerHandbrakeOn
- bool bNewState
- Set to true whenever a new state is received and should be processed
Functions[edit]
Events[edit]
Destroyed[edit]
Overrides: Vehicle.Destroyed
KApplyForce[edit]
Overrides: Actor.KApplyForce
KUpdateState[edit]
Overrides: Actor.KUpdateState
KVehicleUpdateParams[edit]
Overrides: KVehicle.KVehicleUpdateParams
PostNetBeginPlay[edit]
Overrides: Vehicle.PostNetBeginPlay
Tick[edit]
Overrides: Vehicle.Tick
VehicleStateReceived[edit]
Overrides: KVehicle.VehicleStateReceived
Other instance functions[edit]
DoSprint[edit]
Overrides: Vehicle.DoSprint