Re #150: add bump limit velocity and rebound limit velocity to Suspension parameters

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3133 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fccd70d6ab13eeefa7711920a67eb254c103254a
Former-commit-id: 5c20adc241415a1140255ba0059adf834a2e8682
This commit is contained in:
kakukri 2010-11-17 22:00:21 +00:00
parent 9abfe0a171
commit d0f622abd0
2 changed files with 4 additions and 2 deletions

View file

@ -546,6 +546,8 @@ typedef struct CarElt
#define PRM_SLOWREBOUND "slow rebound"
#define PRM_FASTBUMP "fast bump"
#define PRM_FASTREBOUND "fast rebound"
#define PRM_BUMPLVEL "bump limit velocity"
#define PRM_REBOUNDLVEL "rebound limit velocity"
#define PRM_XPOS "xpos"
#define PRM_YPOS "ypos"

View file

@ -129,14 +129,14 @@ void SimSuspConfig(void *hdle, const char *section, tSuspension *susp, tdble F0,
susp->damper.rebound.C1 = GfParmGetNum(hdle, section, PRM_SLOWREBOUND, (char*)NULL, 0.0f);
susp->damper.bump.C2 = GfParmGetNum(hdle, section, PRM_FASTBUMP, (char*)NULL, 0.0f);
susp->damper.rebound.C2 = GfParmGetNum(hdle, section, PRM_FASTREBOUND, (char*)NULL, 0.0f);
susp->damper.bump.v1 = GfParmGetNum(hdle, section, PRM_BUMPLVEL, (char*)NULL, 0.5f);
susp->damper.rebound.v1 = GfParmGetNum(hdle, section, PRM_REBOUNDLVEL, (char*)NULL, 0.5f);
susp->spring.x0 = susp->spring.bellcrank * X0;
susp->spring.F0 = F0 / susp->spring.bellcrank;
susp->spring.K = - susp->spring.K;
susp->damper.bump.b1 = 0.0f;
susp->damper.rebound.b1 = 0.0f;
susp->damper.bump.v1 = 0.5f;
susp->damper.rebound.v1 = 0.5f;
initDamper(susp);
}