Use "suspension course" parameter as wheel movement, in the same way as "packers" are used.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6205 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 630a6a405ff1087da6a341f5da89cb4dcdbac7b0 Former-commit-id: 425c44a579d724ad0b07004057e884ed7f464798
This commit is contained in:
parent
0784af8131
commit
3246d43442
1 changed files with 1 additions and 1 deletions
|
@ -102,11 +102,11 @@ void SimSuspCheckIn(tSuspension *susp)
|
|||
susp->x = susp->spring.packers;
|
||||
susp->state |= SIM_SUSP_COMP;
|
||||
}
|
||||
susp->x *= susp->spring.bellcrank;
|
||||
if (susp->x >= susp->spring.xMax) {
|
||||
susp->x = susp->spring.xMax;
|
||||
susp->state |= SIM_SUSP_EXT;
|
||||
}
|
||||
susp->x *= susp->spring.bellcrank;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue