I'm a doctor, not a mechanic
UE2:KCar (UT2004)
Contents
- 1 Properties
- 1.1 Property group 'KCar'
- 1.1.1 ChassisMass
- 1.1.2 FlipTime
- 1.1.3 FlipTorque
- 1.1.4 FrontTireClass
- 1.1.5 HandbrakeThresh
- 1.1.6 MaxBrakeTorque
- 1.1.7 MaxNetUpdateInterval
- 1.1.8 MaxSteerAngle
- 1.1.9 RearTireClass
- 1.1.10 SteerPropGap
- 1.1.11 SteerSpeed
- 1.1.12 SteerTorque
- 1.1.13 StopThreshold
- 1.1.14 SuspDamping
- 1.1.15 SuspHighLimit
- 1.1.16 SuspLowLimit
- 1.1.17 SuspRef
- 1.1.18 SuspStiffness
- 1.1.19 TireAdhesion
- 1.1.20 TireHandbrakeFriction
- 1.1.21 TireHandbrakeSlip
- 1.1.22 TireLateralFriction
- 1.1.23 TireLateralSlip
- 1.1.24 TireMass
- 1.1.25 TireMinSlip
- 1.1.26 TireRestitution
- 1.1.27 TireRollFriction
- 1.1.28 TireRollSlip
- 1.1.29 TireSlipRate
- 1.1.30 TireSoftness
- 1.1.31 TorqueCurve
- 1.1.32 TorqueSplit
- 1.2 Internal variables
- 1.2.1 bIsInverted
- 1.2.2 bNewCarState
- 1.2.3 CarState
- 1.2.4 ChassisState
- 1.2.5 FlipTimeLeft
- 1.2.6 ForwardVel
- 1.2.7 frontLeft
- 1.2.8 frontRight
- 1.2.9 Gear
- 1.2.10 IsDriving
- 1.2.11 NextNetUpdateTime
- 1.2.12 OutputBrake
- 1.2.13 OutputHandbrakeOn
- 1.2.14 OutputTorque
- 1.2.15 rearLeft
- 1.2.16 rearRight
- 1.2.17 WheelFrontAcross
- 1.2.18 WheelFrontAlong
- 1.2.19 WheelRearAcross
- 1.2.20 WheelRearAlong
- 1.2.21 WheelSpinSpeed
- 1.2.22 WheelVert
- 1.1 Property group 'KCar'
- 2 Structs
- 3 Functions
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
Property group 'KCar'
ChassisMass
Type: float
Default value: 4.0
FlipTime
Type: float
Default value: 3.0
FlipTorque
Type: float
Default value: 350.0
FrontTireClass
HandbrakeThresh
Type: float
speed above which handbrake comes on =]
Default value: 1000.0
MaxBrakeTorque
Type: float
Braking torque applied to all four wheels. Positive only.
Default value: 50.0
MaxNetUpdateInterval
Type: float
Default value: 0.4
MaxSteerAngle
Type: float
(65535 = 360 deg)
Default value: 3900.0
RearTireClass
SteerPropGap
Type: float
Default value: 1000.0
SteerSpeed
Type: float
Default value: 15000.0
SteerTorque
Type: float
Default value: 1000.0
StopThreshold
Type: float
Forward velocity under which brakes become drive.
Default value: 100.0
SuspDamping
Type: float
Default value: 5.0
SuspHighLimit
Type: float
Default value: 1.0
SuspLowLimit
Type: float
Default value: -1.0
SuspRef
Type: float
SuspStiffness
Type: float
Default value: 50.0
TireAdhesion
Type: float
TireHandbrakeFriction
Type: float
Additional lateral friction when handbrake engaged
Default value: -0.5
TireHandbrakeSlip
Type: float
Additional lateral slip when handbrake engaged
Default value: 0.06
TireLateralFriction
Type: float
Default value: 1.0
TireLateralSlip
Type: float
Default value: 0.06
TireMass
Type: float
Default value: 0.5
TireMinSlip
Type: float
Default value: 0.0010
TireRestitution
Type: float
TireRollFriction
Type: float
Default value: 1.0
TireRollSlip
Type: float
Default value: 0.085
TireSlipRate
Type: float
Default value: 5.0E-4
TireSoftness
Type: float
Default value: 2.0E-4
TorqueCurve
Type: Object.InterpCurve
Engine RPM in, Torque out.
Default value:
Member | Value | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Points |
|
TorqueSplit
Type: float
Default value: 0.5
Internal variables
bIsInverted
Type: bool
bNewCarState
Type: bool
Indicated there is new data processed, and chassis RBState should be updated.
CarState
Type: KCarState
This is replicated to the car, and processed to update all the parts.
ChassisState
Type: Actor.KRigidBodyState
FlipTimeLeft
Type: float
ForwardVel
Type: float
Component of cars velocity in its forward direction.
frontLeft
Type: KTire
frontRight
Type: KTire
Gear
Type: int
Default value: 1
IsDriving
Type: bool
NextNetUpdateTime
Type: float
OutputBrake
Type: bool
OutputHandbrakeOn
Type: bool
OutputTorque
Type: float
rearLeft
Type: KTire
rearRight
Type: KTire
WheelFrontAcross
Type: float
Modifiers: const
Default value: 140.0
WheelFrontAlong
Type: float
Modifiers: const
Default value: -180.0
WheelRearAcross
Type: float
Modifiers: const
Default value: 140.0
WheelRearAlong
Type: float
Modifiers: const
Default value: 160.0
WheelSpinSpeed
Type: float
Current (averaged) RPM of rear wheels
WheelVert
Type: float
Modifiers: const
Default value: -0.5
Structs
KCarState
- 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
Events
Destroyed
Overrides: KVehicle.Destroyed
KApplyForce
Overrides: Actor.KApplyForce
KUpdateState
Overrides: Actor.KUpdateState
KVehicleUpdateParams
Overrides: KVehicle.KVehicleUpdateParams
PostNetBeginPlay
Overrides: Pawn.PostNetBeginPlay
Tick
Overrides: KVehicle.Tick
VehicleStateReceived
Overrides: KVehicle.VehicleStateReceived