mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Updated Track Element Lengths (markdown)
@@ -16,8 +16,9 @@ Distance | Axis
|
||||
These figures coincide with a length of 8716 for the X and Y axis and a length of 6554 for the Z axis, using the Pythagorean theorem and rounding up.
|
||||
|
||||
Subpositions are direction-specific, this means the track element length varies depending on which direction it is rotated in the world. These variations appear to have a specific pattern: the track positions are in the range [0, 31] on both axis. For example, flat track has the following beginning and end subposition data:
|
||||
|
||||
Direction | Start position | End position
|
||||
|-|-|-|
|
||||
|----|----|----|
|
||||
0 | { 31, 16, 0 } | { 0, 16, 0 }
|
||||
1 | { 16, 0, 0 } | { 16, 31, 0 }
|
||||
2 | { 0, 16, 0 } | { 31, 16, 0 }
|
||||
@@ -28,8 +29,9 @@ With this information, we can infer that any 90 degree left-hand turn facing dir
|
||||
There may be more variations in the four directions than merely the inclusion or exclusion of the edge of the tile, but I have not poured over enough data to determine this.
|
||||
|
||||
With an algorithm that accounts for some but not all of the information above, here is a list of track element length:
|
||||
|
||||
Track Element ID | Track Element Type | Length | Start Position (calculated) | First Subposition Position
|
||||
-|-|-|-|-
|
||||
|----|----|----|----|----|
|
||||
0 | Flat| 278912 | { 32, 16, 0 } | { 31, 16, 0 }
|
||||
1 | EndStation| 278912 | { 32, 16, 0 } | { 31, 16, 0 }
|
||||
2 | BeginStation| 278912 | { 32, 16, 0 } | { 31, 16, 0 }
|
||||
|
||||
Reference in New Issue
Block a user