The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/showthread.php 103 forum_permissions
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 2121 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 2121 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 669 mark_thread_read
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/inc/functions_post.php 785 postParser->parse_message
/showthread.php 1126 build_postbit
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/inc/functions_post.php 785 postParser->parse_message
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "posttime" - Line: 9 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 9 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "avatar_padding" - Line: 19 - File: inc/functions_post.php(906) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(906) : eval()'d code 19 errorHandler->error
/inc/functions_post.php 906 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 33 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 82 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: showthread.php(1600) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 104 errorHandler->error
/showthread.php 1600 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Engine and wheel inertia
07-22-2009, 08:53 PM,
#16
 
Think I may have got somewhere with it. Added a bit in at the end of CARDYNAMICS::ApplySuspensionForceToBody in cardynamics.cpp to store the current value for force and torque (think I only needed torque) and recall the previously stored value for the body orientation calculations (I put the save functions in cardynamics.h). It's working but I don't think its right as the suspension has to be set very soft for it to be noticeable.
Reply
07-22-2009, 10:26 PM,
#17
 
Hmm, regarding your statement "I think its getting calculated but isn't getting applied to the body so the next frame assumes the body has already moved": the ApplySuspensionForceToBody function adds to the total_force and total_torque when it calls body.GetForceAtOffset, and then the total_force and total_torque get applied to the body back in ApplyForces.

Could it be that suspension_force_application_point is set to the wheel, but should be set to someplace closer to the center of the car? Or should suspension_force be in a direction other than 0,0,1? As you can see I was experimenting with #defines to do other things but never figured out how it should work.

By the way, if you end up touching up the car tuning, note that the engine inertia fix makes it so the clutch calculations are always running, and so some cars that have clutch friction set too low (CT for example) are pretty much unplayable now because the clutch is always slipping.
Reply
07-23-2009, 02:33 AM,
#18
 
Quote:Could it be that suspension_force_application_point is set to the wheel, but should be set to someplace closer to the center of the car? Or should suspension_force be in a direction other than 0,0,1? As you can see I was experimenting with #defines to do other things but never figured out how it should work.
I was thinking the same at first but got my head around some of whats happening from using cout with GetDisplacement for each wheel, the springs are compressing properly with roll and acceleration forces and, as for as I can see, the inertia is getting taken into account but the body is just sitting level.
Just been messing around with the rates on the C7 again, it's hard to get an idea of where to start with the settings (hence 3 days trying to get body roll Smile ) but it seems right, its wallowing like a sick hippo. Here's the horrendous bodge I stuck on the end of ApplySuspensionForceToBody:
Code:
#endif

    MATHVECTOR <T> sp_force;
    MATHVECTOR <T> sp_torque;

    body.GetForceAtOffset ( suspension_force, suspension_force_application_point, sp_force, sp_torque );
    
    suspension[WHEEL_POSITION ( i ) ].SetSuspensionForce( sp_force );
    suspension[WHEEL_POSITION ( i ) ].SetSuspensionTorque( sp_torque );
    sp_force = suspension[WHEEL_POSITION ( i ) ].GetLastSuspensionForce();
    sp_torque = suspension[WHEEL_POSITION ( i ) ].GetLastSuspensionTorque();

    total_force = total_force + sp_force;
    total_torque = total_torque + sp_torque;
    for ( int n = 0; n < 3; n++ ) assert ( !isnan ( total_force[n] ) );
    for ( int n = 0; n < 3; n++ ) assert ( !isnan ( total_torque[n] ) );

    return suspension_force;
The SetSuspensionForce etc functions are in cardynamics.h . It works by allowing the integrate functions in CARDYNAMICS::Tick to rotate the body before the suspension pushes it back up again. At least that's the theory, it could well be my PC is sick of my crappy coding and just gave me what I was looking for. Wave a dead chicken at it all the way Wink
BTW, did you get a chance to look at the square root stuck on the damper force calc's ? It's ugly and relies on no integration to avoid launching the car on small bumps but it stops the car doing acrobatics when touching a curb on the ring or pau. I will look into adding a fast rise in the spring rate near the top of travel to simulate bump stops before too long, but first...
Quote:By the way, if you end up touching up the car tuning
Now I have some kind of body roll I'll get right onto it before poking at anything else, even if the roll changes from some proper coding the change should be fairly linear and just mean scaling the rates up or down. No idea what to do with the tires though, probably need a few more dead chickens to wave. Do you have any notes on the formulas used for the tire calculations? I want to do up a spreadsheet to visualize what does what and my head is already spinning from trying to follow object orientated things.

Couple of other thoughts to finish of an already too long post:
When you suggested the formula to get wheel inertia from wheel weight, does that look about right to you now? A value of about 2 is working well for me here, might not suit everyone though...
Along with the damper and bump-stop I'd like to add damper fade to the suspension force code. It's simple to do but would need a .car file entry to be useful. Brake fade would be more or less the same code, and they both pave the way for tire temperature...
Right, that's enough of that, I have .car files to look at Smile
cheers
Reply
07-23-2009, 04:39 AM,
#19
 
Sticking the .car file I'm using for the C7 here in case anyone has any suggestions. The power is way over the 170bhp it should have and the tires are fairly close to slicks but C7's have had every kind of power unit stuck in them, there were even a few 4x4 ones made. One here in Ireland had the running gear from a 320bhp sierra cosworth 4x4 Smile . I'll be staying as close to standard as I can for the default cars.
Code:
drive = RWD
version = 2

[ steering ]
max-angle = 28.94

[ engine ]
position = 0.0, 1.42, 0.24
mass = 110.0
max-power = 2.75e5
peak-engine-rpm = 8600.0
rpm-limit = 9000.0
inertia = 0.15
idle = 0.02
start-rpm = 1000
stall-rpm = 500
fuel-consumption = 1e-9
torque-friction = 0.0003
torque-curve-00 = 1000, 140.0
torque-curve-01 = 2000, 149.14
torque-curve-02 = 2200, 145.07
torque-curve-03 = 2500, 167.78
torque-curve-04 = 3000, 189.50
torque-curve-05 = 3300, 232.19
torque-curve-06 = 4000, 229.50
torque-curve-07 = 4500, 226.77
torque-curve-08 = 5600, 252.19
torque-curve-09 = 5800, 250.83
torque-curve-10 = 6000, 248.12
torque-curve-11 = 6100, 257.61
torque-curve-12 = 6200, 266.42
torque-curve-13 = 6300, 272.53
torque-curve-14 = 6500, 278.92
torque-curve-15 = 6700, 285.92
torque-curve-16 = 7000, 290.24
torque-curve-17 = 7600, 285.49
torque-curve-18 = 8000, 280.39
torque-curve-19 = 8200, 275.04
torque-curve-20 = 8300, 265.43
torque-curve-21 = 9200, 250.43


[ clutch ]
sliding = 0.27
radius = 0.15
area = 0.75
max-pressure = 15400.0

[ transmission ]
gears = 6
gear-ratio-r = -2.96
gear-ratio-1 = 2.30
gear-ratio-2 = 1.81
gear-ratio-3 = 1.49
gear-ratio-4 = 1.22
gear-ratio-5 = 1.08
gear-ratio-6 = 0.96
shift-delay = 1.2

[ differential ]
final-drive = 3.97
anti-slip = 280.0

[ fuel-tank ]
position = -0.17, -0.26, -0.56
capacity = 40.0
volume = 40.0
fuel-density = 1.0

[ suspension-front ]
spring-constant = 50000
bounce = 2400
rebound = 2600
travel = 0.9
max-compression-velocity = 100
camber = -1.33
caster = 6.12
toe = 0.0
anti-roll = 8000

[ suspension-rear ]
spring-constant = 40000
bounce = 1800
rebound = 2000
travel = 0.9
max-compression-velocity = 100
camber = -0.45
caster = 0.28
toe = 0.0
anti-roll = 6000

[ tire-front ]
radius = 0.325
rolling-resistance = 1.3e-2, 6.5e-6
rotational-inertia = 1.4
tread = 0
# Lateral force
a0=1.55
a1=-40
a2=1800
a3=3200
a4=7.2
a5=0.014
a6=-0.24
a7=1.0
a8=-0.03
a9=-0.0013
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
# Longitudinal force
b0=1.65
b1=-80
b2=1900
b3=23.3
b4=390
b5=0.05
b6=0
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
# Aligning moment
c0=2.2
c1=-4.1
c2=-4.2
c3=-1.8
c4=-9.1
c5=0.0225
c6=0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1

[ tire-rear ]
radius = 0.340
rolling-resistance = 1.3e-2, 6.5e-6
rotational-inertia = 1.6
tread = 0
# Lateral force
a0=1.55
a1=-55
a2=1800
a3=3200
a4=7.2
a5=0.014
a6=-0.24
a7=1.0
a8=-0.03
a9=-0.0013
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
# Longitudinal force
b0=1.65
b1=-110
b2=1900
b3=23.3
b4=410
b5=0.075
b6=0
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
# Aligning moment
c0=2.2
c1=-4.3
c2=-4.4
c3=-1.9
c4=-9.6
c5=0.0225
c6=0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1

[ brakes-front ]
friction = 0.73
max-pressure = 2.5e6
bias = 0.61
radius = 0.17
area = 0.015

[ brakes-rear ]
friction = 0.73
max-pressure = 2.5e6
bias = 0.39
radius = 0.14
area = 0.015
handbrake = 1


[ driver ]
position = -0.208, -0.57, -0.1
mass = 90.0
view-position = -0.208, -0.57, 0.3
hood-mounted-view-position = 0.0, 0.24, 0.12

[ drag ]
position = 0.0, 0.0, 0.2
frontal-area = 2
drag-coefficient = 0.3

[ wing-front ]
position = 0.0, 1.9, 0.60
frontal-area = 0.2
drag-coefficient = 0.0
surface-area = 0.3
lift-coefficient = -0.5
efficiency = 0.95

[ wing-rear ]
position = 0.0, -2.14, 0.37
frontal-area = 0.05
drag-coefficient = 0.0
surface-area = 0.5
lift-coefficient = -2
efficiency = 0.95


[ wheel-FR ]
position = 0.63, 1.19, -0.43
roll-height = 0.325
mass = 12
restitution = 0.1

[ suspension-FR ]
position = 0.58, 1.19, -0.07
hinge = -0.63, 1.19, -0.7

[ wheel-FL ]
position = -0.63, 1.19, -0.43
roll-height = 0.325
mass = 12
restitution = 0.1

[ suspension-FL ]
position = -0.58, 1.19, -0.07
hinge = 0.63, 1.19, -0.7


[ wheel-RR ]
position = 0.65, -1.17, -0.43
roll-height = 0.340
mass = 15
restitution = 0.1

[ suspension-RR ]
position = 0.60, -1.17, -0.07
hinge = -0.65, -1.17, -0.7

[ wheel-RL ]
position = -0.65, -1.17, -0.43
roll-height = 0.340
mass = 15
restitution = 0.1

[ suspension-RL ]
position = -0.60, -1.17, -0.07
hinge = 0.65, -1.17, -0.7




# these are used to calculate the weight distribution and balance
[ particle-00 ]
mass = 10.0
position = 0.0, -1.35, -0.47

[ particle-01 ]
mass = 20.0
position = 0.0, 0.96, -0.47

[ particle-02 ]
mass = 75.0
position = 0.5, -1.3, 0.09

[ particle-03 ]
mass = 75.0
position = -0.5, -1.3, 0.09

[ particle-04 ]
mass = 75.0
position = 0.45, 1.6, -0.13

[ particle-05 ]
mass = 75.0
position = -0.45, 1.6, -0.13
cheers
Reply
07-27-2009, 12:24 AM,
#20
 
stan.distortion Wrote:I was thinking the same at first but got my head around some of whats happening from using cout with GetDisplacement for each wheel, the springs are compressing properly with roll and acceleration forces and, as for as I can see, the inertia is getting taken into account but the body is just sitting level.
Just been messing around with the rates on the C7 again, it's hard to get an idea of where to start with the settings (hence 3 days trying to get body roll Smile ) but it seems right, its wallowing like a sick hippo. Here's the horrendous bodge I stuck on the end of ApplySuspensionForceToBody

So you're basically just delaying the suspension force by one frame? I can't imagine that would have a huge difference. Did you try using your tuned C7 file with the original (current SVN) suspension code? Because when I tried your C7 file, voila, I got healthy body roll without having to touch the suspension code.

Quote:BTW, did you get a chance to look at the square root stuck on the damper force calc's ? It's ugly and relies on no integration to avoid launching the car on small bumps but it stops the car doing acrobatics when touching a curb on the ring or pau. I will look into adding a fast rise in the spring rate near the top of travel to simulate bump stops before too long, but first...

I plotted it and it does look a lot like the general shape of the shock dyno you posted. I tried it out in game and it seems to work fine. But I think the ideal solution is like you said, define points in the car file like how the torque curve is done -- the steepness of the sqrt function around zero kind of bothers me, but the cars drive great.

Quote:Now I have some kind of body roll I'll get right onto it before poking at anything else, even if the roll changes from some proper coding the change should be fairly linear and just mean scaling the rates up or down. No idea what to do with the tires though, probably need a few more dead chickens to wave. Do you have any notes on the formulas used for the tire calculations? I want to do up a spreadsheet to visualize what does what and my head is already spinning from trying to follow object orientated things.

There's a basic textual description of the different coefficients here:
http://wiki.vdrift.net/Car_parameters#Tire

But this is the best resource I've found for understanding what the different coefficients actually mean:
http://members.xoom.virgilio.it/adiaforo/epcjk.htm

Also, if you can find a pacejka editor so you can visualize how the curve changes with different values, that helps immensely as well. The coefficients for the 360 are a good starting place because it sets many of them to zero.

Parts 21 and 22 here might help:
http://phors.locost7.info/contents.htm

Quote:Couple of other thoughts to finish of an already too long post:
When you suggested the formula to get wheel inertia from wheel weight, does that look about right to you now? A value of about 2 is working well for me here, might not suit everyone though...

The wheel inertia formula is correct, although it assumes constant density over a cylinder. There's also a formula for a cut out cylinder that may give better values:
http://en.wikipedia.org/wiki/List_of_moments_of_inertia
Iz=0.5*m*(r1*r1+r2*r2)

Also add a little more onto the value for the inertia of the axle.

Quote:Along with the damper and bump-stop I'd like to add damper fade to the suspension force code. It's simple to do but would need a .car file entry to be useful. Brake fade would be more or less the same code, and they both pave the way for tire temperature...

Oooh... :-)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)