I don't need to test my programs. I have an error-correcting modem.

UE2:KCar (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> Actor >> Pawn >> Vehicle >> KVehicle >> KCar
Package: 
Vehicles
Direct subclass:
Bulldog
This class in other games:
UT2003, U2

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

FlipTime[edit]

Type: float


Default value: 3.0

FlipTorque[edit]

Type: float


Default value: 350.0

FrontTireClass[edit]

Type: class<KTire>


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

RearTireClass[edit]

Type: class<KTire>


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
Member Value
InVal 0.0
OutVal 150.0
Member Value
InVal 245756.0
OutVal 150.0
Member Value
InVal 491512.0
OutVal 0.0

TorqueSplit[edit]

Type: float


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


FlipTimeLeft[edit]

Type: float


ForwardVel[edit]

Type: float

Component of cars velocity in its forward direction.

frontLeft[edit]

Type: KTire


frontRight[edit]

Type: KTire


Gear[edit]

Type: int


Default value: 1

IsDriving[edit]

Type: bool


NextNetUpdateTime[edit]

Type: float


OutputBrake[edit]

Type: bool


OutputHandbrakeOn[edit]

Type: bool


OutputTorque[edit]

Type: float


rearLeft[edit]

Type: KTire


rearRight[edit]

Type: KTire


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

WheelVert[edit]

Type: float

Modifiers: const


Default value: -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]

simulated event Destroyed ()

Overrides: KVehicle.Destroyed


KApplyForce[edit]

simulated event KApplyForce (out Object.Vector Force, out Object.Vector Torque)

Overrides: Actor.KApplyForce


KUpdateState[edit]

simulated event bool KUpdateState (out Actor.KRigidBodyState newState)

Overrides: Actor.KUpdateState


KVehicleUpdateParams[edit]

simulated event KVehicleUpdateParams ()

Overrides: KVehicle.KVehicleUpdateParams


PostNetBeginPlay[edit]

simulated event PostNetBeginPlay ()

Overrides: Pawn.PostNetBeginPlay


Tick[edit]

simulated event Tick (float Delta)

Overrides: KVehicle.Tick


VehicleStateReceived[edit]

simulated event VehicleStateReceived ()

Overrides: KVehicle.VehicleStateReceived


Other instance functions[edit]

Engine[edit]

function float Engine (float Throttle)


PackState[edit]

function PackState ()


ProcessCarInput[edit]

function ProcessCarInput ()


StartFlip[edit]

function StartFlip (Pawn Pusher)