1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

move SubpositionTranslationDistance to VehicleGeometry

This commit is contained in:
Spacek531
2025-10-20 13:49:32 -07:00
committed by Gymnasiast
parent 126c7b7e73
commit 925ed8ded5
6 changed files with 32 additions and 30 deletions

View File

@@ -14,4 +14,29 @@
namespace OpenRCT2::RideVehicle::Geometry
{
/** rct2: 0x009A2930
The distance between subposition points in a movement direction (but not distance).
*/
const int32_t SubpositionTranslationDistances[] = {
// For a base length of 8716 (0x220C) on the horizontal and 6554 (0x199A) on the vertical,
// use the Pythagoras theorem and round up.
0, // no movement
8716, // X translation
8716, // Y translation
12327, // XY translation
6554, // Z translation
10905, // XZ translation
10905, // YZ translation
13961, // XYZ translation
// For the reverser car, multiply the horizontal distance by 2.5 and the vertical distance by 4.072.
0, // no movement
21790, // X translation
21790, // Y translation
30817, // Z translation
16385, // XY translation
27262, // XZ translation
27262, // YZ translation
34902, // XYZ translation
};
} // namespace OpenRCT2::RideVehicle::Geometry