]> git.tdb.fi Git - r2c2.git/commit
Rewrite rod simulation code
authorMikko Rasa <tdb@tdb.fi>
Sun, 11 Aug 2013 12:28:13 +0000 (15:28 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 11 Aug 2013 12:28:13 +0000 (15:28 +0300)
commitdd05e8ed55a9072daaf18e4c63c3b66e386ba7f4
treeee68743885a0f618f7f1be24c72f5f0a03e8418b
parent3bd82be700904d2c1428e6ba35642426c76beeaa
Rewrite rod simulation code

Instead of trying to get a perfect solution on the first try, solve rod
interconnection constraints iteratively.  This simplifies the code and
allows for certain rod configurations that would have been prohibitively
difficult to solve exactly.

It's now also possible to create a mirrored set of rods on the other side
of the locomotive with a single statement.
locos.dat
source/libr2c2/vehicle.cpp
source/libr2c2/vehicle.h
source/libr2c2/vehicletype.cpp
source/libr2c2/vehicletype.h