Commit 88d89f89 authored by Thorsten Wißmann's avatar Thorsten Wißmann 🐧
Browse files

Improvise axis offset

parent b3cc84aa
# Train shunting visualization
A browser visualization for train shunting puzzles
## Compilation
Requirements: elm 0.17 (see elm-lang.org) and gnu make
To build it, run
```
$ make
```
When running this the first time, you need to confirm some questions by "Yes".
......@@ -19,3 +23,11 @@ $ elm repl
>
```
## Bugs
* The axes jump a little at the beginning and the end of the animtion. The
reason is that during animation the axes are placed depending on the
track-distance from the middle of the carriage, whereas in resting mode, the
axes are placed at a certain ratio of the track (which is actually better but
not really possible for the animation).
......@@ -35,9 +35,9 @@ carConfig =
, carLen = 84.0
, roundness_x = 8.2
, roundness_y = 4.2
, axis1_offset = -20.0
, axis2_offset = 20.0
, speed = 230.0 -- how much distance per second
, axis1_offset = -28.0
, axis2_offset = 28.0
, speed = 330.0 -- how much distance per second
}
carriageOffset : MovingFlags -> Float
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment