Add map
This commit is contained in:
parent
72b28f2bb0
commit
ad8baef113
3 changed files with 231 additions and 1 deletions
2
racing.h
2
racing.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue