Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suspension subclassing; CARSUSPENSIONINFO struct.
11-18-2010, 08:02 PM,
#4
 
On the subject, I've been thinking on how to implement codepedent suspension, and my current theory is the best option goes in configuration with something like:

Code:
[suspensionlink/rear]
# Funky link frame parameters go here

[wheel/rl]
suspension = linked
suspensionlink = rear
# Wheel specific parameters

[wheel/rr]
suspension = linked
suspensionlink = rear
# Wheel specific parameters

Codewise, the suspension links themselves could be stored for loading purposes in a string map that is initially empty, the first wheel to look up a mapping creates it, every subsequent look up will reference the same map — during the actual simulation each wheel position refers to its relevant link directly, avoiding the STL overhead. The caveat is that CARDYNAMICS Load routine would need to know a little about linked suspension (at the least provide a map), but I guess that's not so bad. Additionally all wheels linked together would need to update their positions before force is applied to any of them.
Reply


Messages In This Thread
[No subject] - by NaN - 11-18-2010, 11:04 AM
[No subject] - by fudje - 11-18-2010, 07:11 PM
[No subject] - by fudje - 11-18-2010, 08:02 PM
[No subject] - by fudje - 11-19-2010, 12:39 AM
[No subject] - by NaN - 11-19-2010, 01:13 PM
[No subject] - by NaN - 11-19-2010, 02:28 PM
[No subject] - by fudje - 11-19-2010, 04:20 PM
Patch for LE data. - by fudje - 11-20-2010, 01:08 AM
[No subject] - by fudje - 11-20-2010, 01:55 AM
[No subject] - by fudje - 11-20-2010, 04:19 AM
[No subject] - by NaN - 11-20-2010, 07:41 AM
[No subject] - by fudje - 11-20-2010, 03:41 PM
[No subject] - by fudje - 11-21-2010, 04:46 AM
[No subject] - by NaN - 11-21-2010, 07:32 AM
[No subject] - by NaN - 11-21-2010, 07:36 AM
[No subject] - by fudje - 11-21-2010, 11:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-21-2010, 02:20 PM
[No subject] - by fudje - 11-21-2010, 09:02 PM
[No subject] - by fudje - 11-22-2010, 07:51 PM
[No subject] - by fudje - 11-26-2010, 01:24 AM
[No subject] - by NaN - 11-26-2010, 07:53 PM
More stuff - by fudje - 12-01-2010, 06:08 AM
[No subject] - by NaN - 12-01-2010, 12:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)