Start HUD

This commit is contained in:
Miloslav Ciz 2024-12-17 21:39:32 +01:00
parent 6d31c3c492
commit b177e924dd
5 changed files with 78 additions and 12 deletions

View file

@ -80,10 +80,13 @@ struct
LCR_GameUnit carSpeed; ///* Signed speed (negative if backwards)
LCR_GameUnit carSpeed; /**< Signed speed in game units per tick (negative
if backwards) */
} LCR_racing;
TPE_Vec3 _LCR_TPE_vec3DividePlain(TPE_Vec3 v, TPE_Unit d)
{
v.x /= d; v.y /= d; v.z /= d;
@ -974,7 +977,6 @@ uint32_t LCR_racingStep(unsigned int input)
LCR_racing.carSpeed = (TPE_vec3Len(carVel) * LCR_GAME_UNIT)
/ LCR_PHYSICS_UNIT;
if (TPE_vec3Dot(carVel,carForw) < 0)
LCR_racing.carSpeed *= -1;