The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:KCar (UT2003)

From Unreal Wiki, The Unreal Engine Documentation Site

(Redirected from UE2:KCarState (UT2003))
Jump to: navigation, search
UT2003 Object >> Actor >> Pawn >> KVehicle >> KCar

Contents

Package: 
Vehicles
Direct subclass:
Bulldog
This class in other games:
U2, UT2004

Base class for 4-wheeled vehicles using Karma Assumes negative-X is forward, negative-Y is right

[edit] Properties

[edit] Property group 'KCar'

[edit] ChassisMass

Type: float


Default value: 4.0

[edit] FlipTime

Type: float


Default value: 3.0

[edit] FlipTorque

Type: float


Default value: 350.0

[edit] FrontTireClass

Type: class<KTire>


[edit] HandbrakeThresh

Type: float

speed above which handbrake comes on =]

Default value: 1000.0

[edit] MaxBrakeTorque

Type: float

Braking torque applied to all four wheels. Positive only.

Default value: 50.0

[edit] MaxNetUpdateInterval

Type: float


Default value: 0.4

[edit] MaxSteerAngle

Type: float

(65535 = 360 deg)

Default value: 3900.0

[edit] RearTireClass

Type: class<KTire>


[edit] SteerPropGap

Type: float


Default value: 1000.0

[edit] SteerSpeed

Type: float


Default value: 15000.0

[edit] SteerTorque

Type: float


Default value: 1000.0

[edit] StopThreshold

Type: float

Forward velocity under which brakes become drive.

Default value: 100.0

[edit] SuspDamping

Type: float


Default value: 5.0

[edit] SuspHighLimit

Type: float


Default value: 1.0

[edit] SuspLowLimit

Type: float


Default value: -1.0

[edit] SuspRef

Type: float


[edit] SuspStiffness

Type: float


Default value: 50.0

[edit] TireAdhesion

Type: float


[edit] TireHandbrakeFriction

Type: float

Additional lateral friction when handbrake engaged

Default value: -0.5

[edit] TireHandbrakeSlip

Type: float

Additional lateral slip when handbrake engaged

Default value: 0.06

[edit] TireLateralFriction

Type: float


Default value: 1.0

[edit] TireLateralSlip

Type: float


Default value: 0.06

[edit] TireMass

Type: float


Default value: 0.5

[edit] TireMinSlip

Type: float


Default value: 0.0010

[edit] TireRestitution

Type: float


[edit] TireRollFriction

Type: float


Default value: 1.0

[edit] TireRollSlip

Type: float


Default value: 0.085

[edit] TireSlipRate

Type: float


Default value: 5.0E-4

[edit] TireSoftness

Type: float


Default value: 2.0E-4

[edit] TorqueCurve

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

[edit] TorqueSplit

Type: float


Default value: 0.5

[edit] Internal variables

[edit] bIsInverted

Type: bool


[edit] bNewCarState

Type: bool

Indicated there is new data processed, and chassis RBState should be updated.

[edit] CarState

Type: KCarState

This is replicated to the car, and processed to update all the parts.

[edit] ChassisState

Type: Actor.KRigidBodyState


[edit] FlipTimeLeft

Type: float


[edit] ForwardVel

Type: float

Component of cars velocity in its forward direction.

[edit] frontLeft

Type: KTire


[edit] frontRight

Type: KTire


[edit] Gear

Type: int


Default value: 1

[edit] IsDriving

Type: bool


[edit] NextNetUpdateTime

Type: float


[edit] OutputBrake

Type: bool


[edit] OutputHandbrakeOn

Type: bool


[edit] OutputTorque

Type: float


[edit] rearLeft

Type: KTire


[edit] rearRight

Type: KTire


[edit] WheelFrontAcross

Type: float

Modifiers: const


Default value: 140.0

[edit] WheelFrontAlong

Type: float

Modifiers: const


Default value: -180.0

[edit] WheelRearAcross

Type: float

Modifiers: const


Default value: 140.0

[edit] WheelRearAlong

Type: float

Modifiers: const


Default value: 160.0

[edit] WheelSpinSpeed

Type: float

Current (averaged) RPM of rear wheels

[edit] WheelVert

Type: float

Modifiers: const


Default value: -0.5

[edit] Structs

[edit] 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

[edit] Functions

[edit] Events

[edit] Destroyed

simulated event Destroyed ()

Overrides: KVehicle.Destroyed


[edit] KApplyForce

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

Overrides: Actor.KApplyForce


[edit] KUpdateState

simulated event bool KUpdateState (out Actor.KRigidBodyState newState)

Overrides: Actor.KUpdateState


[edit] KVehicleUpdateParams

simulated event KVehicleUpdateParams ()

Overrides: KVehicle.KVehicleUpdateParams


[edit] PostNetBeginPlay

simulated event PostNetBeginPlay ()

Overrides: Pawn.PostNetBeginPlay


[edit] Tick

simulated event Tick (float Delta)

Overrides: KVehicle.Tick


[edit] VehicleStateReceived

simulated event VehicleStateReceived ()

Overrides: KVehicle.VehicleStateReceived


[edit] Other instance functions

[edit] Engine

function float Engine (float Throttle)


[edit] PackState

function PackState ()


[edit] ProcessCarInput

function ProcessCarInput ()


[edit] StartFlip

function StartFlip (Pawn Pusher)