Skip to navigation


Driving model: xPlayerSpeedTop

Name: xPlayerSpeedTop [Show more] Type: Variable Category: Driving model Summary: Top byte of the x-coordinate of the velocity vector (i.e. x-axis speed) for the player's car during this main loop iteration
Context: See this variable in context in the source code References: This variable is used as follows: * AddCoords uses xPlayerSpeedTop * AddSteeringForce uses xPlayerSpeedTop * ApplyDeltas uses xPlayerSpeedTop * MultiplyCoords uses xPlayerSpeedTop * Scale16Bit uses xPlayerSpeedTop * UpdateVelocity uses xPlayerSpeedTop

The speed is stored as a 24-bit number in (xPlayerSpeedTop xPlayerSpeedHi xPlayerSpeedLo).
.xPlayerSpeedTop EQUB 0