Start HUD
This commit is contained in:
parent
6d31c3c492
commit
b177e924dd
5 changed files with 78 additions and 12 deletions
6
racing.h
6
racing.h
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue