This commit is contained in:
Miloslav Ciz 2025-03-04 00:43:44 +01:00
parent 72b28f2bb0
commit ad8baef113
3 changed files with 231 additions and 1 deletions

View file

@ -1159,7 +1159,7 @@ uint32_t LCR_racingStep(unsigned int input)
/* Apply gravity like this: if all wheels are on ground, we don't apply
gravity to roof. This helps prevent sliding. */
for (i = 0; i < 5; ++i)
for (int i = 0; i < 5; ++i)
if (i < 4 || (((LCR_racing.wheelCollisions |
(LCR_racing.wheelCollisions >> 4)) & 0x0f) != 0x0f))
LCR_racing.carBody.joints[i].velocity[1] -= LCR_GRAVITY;